# HG changeset patch # User Pierre-Yves David # Date 1344342865 -7200 # Node ID 97d82fbd2c24c1541887506dffae7339f90de7d3 # Parent 9863e196cc6553d97dfea03ad524ef5802b67259 obsolete: clean up import diff -r 9863e196cc65 -r 97d82fbd2c24 hgext/obsolete.py --- a/hgext/obsolete.py Tue Aug 07 14:33:24 2012 +0200 +++ b/hgext/obsolete.py Tue Aug 07 14:34:25 2012 +0200 @@ -39,18 +39,13 @@ """ -import os, sys -try: - from cStringIO import StringIO -except ImportError: - from StringIO import StringIO +import sys from mercurial.i18n import _ import json import struct -from mercurial import util, base85 _pack = struct.pack _unpack = struct.unpack @@ -67,18 +62,13 @@ from mercurial import revset from mercurial import scmutil from mercurial import extensions -from mercurial import pushkey from mercurial import discovery from mercurial import error from mercurial import commands -from mercurial import changelog from mercurial import phases -from mercurial.node import hex, bin, short, nullid -from mercurial.lock import release -from mercurial import localrepo +from mercurial.node import bin, short, nullid from mercurial import cmdutil from mercurial import templatekw -from mercurial.localrepo import storecache # This extension hold the following code #