contrib: use absolute_import in win32/hgwebdir_wsgi.py
authorPulkit Goyal <7895pulkit@gmail.com>
Mon, 14 Mar 2016 14:12:13 +0530
changeset 28521 c3ed14344cd9
parent 28520 84cc72c5771e
child 28522 f2fe7b199bb4
contrib: use absolute_import in win32/hgwebdir_wsgi.py
contrib/win32/hgwebdir_wsgi.py
tests/test-check-py3-compat.t
--- a/contrib/win32/hgwebdir_wsgi.py	Sun Dec 27 13:38:46 2015 +0900
+++ b/contrib/win32/hgwebdir_wsgi.py	Mon Mar 14 14:12:13 2016 +0530
@@ -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
--- a/tests/test-check-py3-compat.t	Sun Dec 27 13:38:46 2015 +0900
+++ b/tests/test-check-py3-compat.t	Mon Mar 14 14:12:13 2016 +0530
@@ -11,7 +11,6 @@
   contrib/revsetbenchmarks.py requires print_function
   contrib/showstack.py not using absolute_import
   contrib/synthrepo.py not using absolute_import
-  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