evolve: remove unused StringIO import stable
authorAnton Shestakov <av6@dwimlabs.net>
Wed, 13 Feb 2019 21:56:05 +0800
branchstable
changeset 4461 7f87ef9f0224
parent 4460 dd679f5fc96f
child 4462 7b13256a6a8e
evolve: remove unused StringIO import
hgext3rd/evolve/__init__.py
hgext3rd/evolve/obsdiscovery.py
--- a/hgext3rd/evolve/__init__.py	Fri Mar 22 09:45:07 2019 -0700
+++ b/hgext3rd/evolve/__init__.py	Wed Feb 13 21:56:05 2019 +0800
@@ -257,14 +257,6 @@
 import struct
 
 try:
-    import StringIO as io
-    StringIO = io.StringIO
-except ImportError:
-    import io
-    StringIO = io.StringIO
-
-
-try:
     from mercurial import registrar
     registrar.templatekeyword # new in hg-3.8
 except ImportError:
--- a/hgext3rd/evolve/obsdiscovery.py	Fri Mar 22 09:45:07 2019 -0700
+++ b/hgext3rd/evolve/obsdiscovery.py	Wed Feb 13 21:56:05 2019 +0800
@@ -15,13 +15,6 @@
 
 from __future__ import absolute_import
 
-try:
-    import StringIO as io
-    StringIO = io.StringIO
-except ImportError:
-    import io
-    StringIO = io.StringIO
-
 import hashlib
 import heapq
 import inspect