# HG changeset patch # User Robert Stanca # Date 2016-04-03 21:55:36 # Node ID 779addce6910f538208f5860508df78f0c24ff75 # Parent de5808c57f58a861bb237c4ab00d75b06c7e2d82 py3: use absolute_import in test-hgweb-auth.py 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 @@ -56,7 +56,6 @@ tests/test-demandimport.py not using absolute_import tests/test-demandimport.py requires print_function tests/test-doctest.py not using absolute_import - tests/test-hgweb-auth.py not using absolute_import tests/test-hgweb-auth.py requires print_function tests/test-hgwebdir-paths.py not using absolute_import tests/test-hybridencode.py not using absolute_import diff --git a/tests/test-hgweb-auth.py b/tests/test-hgweb-auth.py --- a/tests/test-hgweb-auth.py +++ b/tests/test-hgweb-auth.py @@ -1,8 +1,15 @@ +from __future__ import absolute_import + from mercurial import demandimport; demandimport.enable() import urllib2 -from mercurial import ui, util -from mercurial import url -from mercurial.error import Abort +from mercurial import ( + ui, + url, + util, +) +from mercurial.error import ( + Abort, +) class myui(ui.ui): def interactive(self):