# HG changeset patch # User timeless # Date 1456955435 0 # Node ID 588874c33b4df7e464bd7fd0a1063a7e41b32b24 # Parent d3c8183f429ea3fd4abb42666f23fbeab906f886 win32mbcs: use absolute_import diff -r d3c8183f429e -r 588874c33b4d hgext/win32mbcs.py --- a/hgext/win32mbcs.py Wed Mar 02 21:48:08 2016 +0000 +++ b/hgext/win32mbcs.py Wed Mar 02 21:50:35 2016 +0000 @@ -44,10 +44,17 @@ It is useful for the users who want to commit with UTF-8 log message. ''' +from __future__ import absolute_import -import os, sys +import os +import sys + +from mercurial import ( + encoding, + error, +) from mercurial.i18n import _ -from mercurial import error, encoding + # Note for extension authors: ONLY specify testedwith = 'internal' for # extensions which SHIP WITH MERCURIAL. Non-mainline extensions should # be specifying the version(s) of Mercurial they are tested with, or diff -r d3c8183f429e -r 588874c33b4d tests/test-check-py3-compat.t --- a/tests/test-check-py3-compat.t Wed Mar 02 21:48:08 2016 +0000 +++ b/tests/test-check-py3-compat.t Wed Mar 02 21:50:35 2016 +0000 @@ -47,7 +47,6 @@ hgext/rebase.py not using absolute_import hgext/share.py not using absolute_import hgext/transplant.py not using absolute_import - hgext/win32mbcs.py not using absolute_import hgext/win32text.py not using absolute_import i18n/check-translation.py not using absolute_import i18n/polib.py not using absolute_import