obsolete: clean up import
authorPierre-Yves David <pierre-yves.david@logilab.fr>
Tue, 07 Aug 2012 14:34:25 +0200
changeset 435 97d82fbd2c24
parent 434 9863e196cc65
child 436 1e042eeb2d1a
obsolete: clean up import
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
 #