[PATCH 8 of 8 v3] contrib/win32/hgwebdir_wsgi: use absolute_import

Pulkit Goyal 7895pulkit at gmail.com
Mon Mar 14 10:45:41 EDT 2016


# HG changeset patch
# User Pulkit Goyal <7895pulkit at gmail.com>
# Date 1457944933 -19800
#      Mon Mar 14 14:12:13 2016 +0530
# Node ID f4c8ee1486a2036c8bf6cca49ea71dd620ef2107
# Parent  4a594445d3b751ccbbda7766a9d4d7d42415b98b
contrib/win32/hgwebdir_wsgi: use absolute_import

diff --git a/contrib/win32/hgwebdir_wsgi.py b/contrib/win32/hgwebdir_wsgi.py
--- a/contrib/win32/hgwebdir_wsgi.py
+++ b/contrib/win32/hgwebdir_wsgi.py
@@ -87,6 +87,7 @@
 path_prefix = 1  # This many path elements are prefixes (depends on the
                  # virtual path of the IIS application).
 
+from __future__ import absolute_import
 import sys
 
 # Adjust python path if this is not a system-wide install
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
@@ -5,7 +5,6 @@
   $ hg files 'set:(**.py)' | sed 's|\\|/|g' | xargs python contrib/check-py3-compat.py
   contrib/import-checker.py not using absolute_import
   contrib/import-checker.py requires print_function
-  contrib/win32/hgwebdir_wsgi.py not using absolute_import
   doc/check-seclevel.py not using absolute_import
   doc/gendoc.py not using absolute_import
   doc/hgmanpage.py not using absolute_import


More information about the Mercurial-devel mailing list