crecord: fix some import style
authorMatt Mackall <mpm@selenic.com>
Mon, 16 Mar 2015 12:55:21 -0500
changeset 24313 ed535f2c15c3
parent 24312 f208ce59a6e5
child 24314 348492ba632a
crecord: fix some import style
mercurial/crecord.py
--- a/mercurial/crecord.py	Fri Mar 13 22:50:40 2015 -0400
+++ b/mercurial/crecord.py	Mon Mar 16 12:55:21 2015 -0500
@@ -8,18 +8,9 @@
 # This code is based on the Mark Edgington's crecord extension.
 # (Itself based on Bryan O'Sullivan's record extension.)
 
-from mercurial.i18n import _
-
-from mercurial import patch as patchmod
-from mercurial import util
-from mercurial import demandimport
-demandimport.ignore.append('mercurial.encoding')
-try:
-    import mercurial.encoding as encoding
-    code = encoding.encoding
-except ImportError:
-    encoding = util
-    code = encoding._encoding
+from i18n import _
+import patch as patchmod
+import util, encoding
 
 import os
 import re