py3: shift from __future__ import absolute import to beginning (issue5269)
authorPulkit Goyal <7895pulkit@gmail.com>
Mon, 20 Jun 2016 23:31:45 +0530
changeset 29385 aa1d56003872
parent 29384 c75c8ea2f573
child 29386 63fad6235369
py3: shift from __future__ import absolute import to beginning (issue5269)
contrib/win32/hgwebdir_wsgi.py
--- a/contrib/win32/hgwebdir_wsgi.py	Mon Jun 20 23:24:55 2016 +0200
+++ b/contrib/win32/hgwebdir_wsgi.py	Mon Jun 20 23:31:45 2016 +0530
@@ -79,6 +79,8 @@
 # - Restart the web server and see if things are running.
 #
 
+from __future__ import absolute_import
+
 # Configuration file location
 hgweb_config = r'c:\your\directory\wsgi.config'
 
@@ -87,7 +89,6 @@
 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