changeset 24313:ed535f2c15c3

crecord: fix some import style
author Matt Mackall <mpm@selenic.com>
date Mon, 16 Mar 2015 12:55:21 -0500
parents f208ce59a6e5
children 348492ba632a
files mercurial/crecord.py
diffstat 1 files changed, 3 insertions(+), 12 deletions(-) [+]
line wrap: on
line diff
--- 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