changeset 28089:a1163ee26e4a

acl: use absolute_import Continuing the march towards Python 3.
author Gregory Szorc <gregory.szorc@gmail.com>
date Tue, 09 Feb 2016 17:29:39 -0800
parents 19424f960bf5
children 8113c88b8e6d
files hgext/acl.py tests/test-check-py3-compat.t
diffstat 2 files changed, 10 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/hgext/acl.py	Thu Feb 11 17:23:10 2016 -0800
+++ b/hgext/acl.py	Tue Feb 09 17:29:39 2016 -0800
@@ -191,9 +191,17 @@
 
 '''
 
+from __future__ import absolute_import
+
+import getpass
+import urllib
+
 from mercurial.i18n import _
-from mercurial import util, match, error
-import getpass, urllib
+from mercurial import (
+    error,
+    match,
+    util,
+)
 
 # Note for extension authors: ONLY specify testedwith = 'internal' for
 # extensions which SHIP WITH MERCURIAL. Non-mainline extensions should
--- a/tests/test-check-py3-compat.t	Thu Feb 11 17:23:10 2016 -0800
+++ b/tests/test-check-py3-compat.t	Tue Feb 09 17:29:39 2016 -0800
@@ -32,7 +32,6 @@
   doc/gendoc.py not using absolute_import
   doc/hgmanpage.py not using absolute_import
   hgext/__init__.py not using absolute_import
-  hgext/acl.py not using absolute_import
   hgext/blackbox.py not using absolute_import
   hgext/bugzilla.py not using absolute_import
   hgext/censor.py not using absolute_import