[PATCH 4 of 6 V2] tests: use absolute_import in test-hgweb-auth.py
Robert Stanca
robert.stanca7 at gmail.com
Sun Apr 3 18:53:42 EDT 2016
# HG changeset patch
# User Robert Stanca <robert.stanca7 at gmail.com>
# Date 1459720536 -10800
# Mon Apr 04 00:55:36 2016 +0300
# Node ID 53eec7dd8268f7d5ea8363dff3e3d0947f1b43cb
# Parent e91e1960e4b0e9c73142fa54805a3fae61c43182
tests: use absolute_import in test-hgweb-auth.py
diff -r e91e1960e4b0 -r 53eec7dd8268 tests/test-check-py3-compat.t
--- a/tests/test-check-py3-compat.t Mon Apr 04 00:29:03 2016 +0300
+++ b/tests/test-check-py3-compat.t Mon Apr 04 00:55:36 2016 +0300
@@ -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 -r e91e1960e4b0 -r 53eec7dd8268 tests/test-hgweb-auth.py
--- a/tests/test-hgweb-auth.py Mon Apr 04 00:29:03 2016 +0300
+++ b/tests/test-hgweb-auth.py Mon Apr 04 00:55:36 2016 +0300
@@ -1,3 +1,5 @@
+from __future__ import absolute_import
+
try:
import urllib2
httppasswordmgrwithdefaultrealm = urllib2.HTTPPasswordMgrWithDefaultRealm
@@ -7,9 +9,14 @@
urllib.request.HTTPPasswordMgrWithDefaultRealm
from mercurial import demandimport; demandimport.enable()
-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):
More information about the Mercurial-devel
mailing list