# HG changeset patch # User Gregory Szorc # Date 2016-02-10 01:29:39 # Node ID a1163ee26e4a94d713f2355c90f4c317fb4e9494 # Parent 19424f960bf5891a1a84e8bd1bc1ccbcdfb913d1 acl: use absolute_import Continuing the march towards Python 3. diff --git a/hgext/acl.py b/hgext/acl.py --- a/hgext/acl.py +++ b/hgext/acl.py @@ -191,9 +191,17 @@ 3) Deny access to a file to anyone but u ''' +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 diff --git a/tests/test-check-py3-compat.t b/tests/test-check-py3-compat.t --- a/tests/test-check-py3-compat.t +++ b/tests/test-check-py3-compat.t @@ -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