[PATCH 02 of 21 WIP-PY3K] encoding: convert to absolute_import
Matthew Turk
matthewturk at gmail.com
Mon Oct 12 16:24:46 CDT 2015
# HG changeset patch
# User Matthew Turk <matthewturk at gmail.com>
# Date 1444683043 18000
# Mon Oct 12 15:50:43 2015 -0500
# Node ID c1ea4c8067b55e113c901c958d1857a1415d74dc
# Parent 011e94a1c340f8dd335736cba51c126c909c935c
encoding: convert to absolute_import
diff -r 011e94a1c340 -r c1ea4c8067b5 mercurial/encoding.py
--- a/mercurial/encoding.py Mon Oct 12 15:46:49 2015 -0500
+++ b/mercurial/encoding.py Mon Oct 12 15:50:43 2015 -0500
@@ -5,8 +5,13 @@
# This software may be used and distributed according to the terms of the
# GNU General Public License version 2 or any later version.
-import error
-import unicodedata, locale, os
+from __future__ import absolute_import
+
+from . import (
+ error
+)
+
+import unicodedata, locale, os, sys
# These unicode characters are ignored by HFS+ (Apple Technote 1150,
# "Unicode Subtleties"), so we need to ignore them in some places for
More information about the Mercurial-devel
mailing list