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

Augie Fackler raf at durin42.com
Mon Mar 14 14:17:50 EDT 2016


On Mon, Mar 14, 2016 at 09:45:41AM -0500, Pulkit Goyal wrote:
> # 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
>

queued this patch, thanks


>
> 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
> _______________________________________________
> Mercurial-devel mailing list
> Mercurial-devel at mercurial-scm.org
> https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel


More information about the Mercurial-devel mailing list