# HG changeset patch # User Pulkit Goyal <7895pulkit@gmail.com> # Date 2016-06-20 18:01:45 # Node ID aa1d56003872cba207d908706da059141dd901a5 # Parent c75c8ea2f5737e589bd4f1047df25b91941241b9 py3: shift from __future__ import absolute import to beginning (issue5269) 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 @@ -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_strip = 0 # Strip this many path 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