Patchwork py3: shift from __future__ import absolute import to beginning (issue5269)

login
register
mail settings
Submitter Pulkit Goyal
Date June 20, 2016, 6:03 p.m.
Message ID <a55c63eb6baf5165fbee.1466445803@pulkit-goyal>
Download mbox | patch
Permalink /patch/15556/
State Accepted
Headers show

Comments

Pulkit Goyal - June 20, 2016, 6:03 p.m.
# HG changeset patch
# User Pulkit Goyal <7895pulkit@gmail.com>
# Date 1466445705 -19800
#      Mon Jun 20 23:31:45 2016 +0530
# Node ID a55c63eb6baf5165fbee616e0988b9079a2bc77b
# Parent  ae89177a49c51f66962202598a44643c1dd1d18f
py3: shift from __future__ import absolute import to beginning (issue5269)
Sean Farley - June 20, 2016, 10:37 p.m.
Pulkit Goyal <7895pulkit@gmail.com> writes:

> # HG changeset patch
> # User Pulkit Goyal <7895pulkit@gmail.com>
> # Date 1466445705 -19800
> #      Mon Jun 20 23:31:45 2016 +0530
> # Node ID a55c63eb6baf5165fbee616e0988b9079a2bc77b
> # Parent  ae89177a49c51f66962202598a44643c1dd1d18f
> py3: shift from __future__ import absolute import to beginning (issue5269)

Sure, looks good to me.
Pierre-Yves David - June 21, 2016, 2:31 a.m.
Pushed, thanks.

On 06/21/2016 12:37 AM, Sean Farley wrote:
> Pulkit Goyal <7895pulkit@gmail.com> writes:
> 
>> # HG changeset patch
>> # User Pulkit Goyal <7895pulkit@gmail.com>
>> # Date 1466445705 -19800
>> #      Mon Jun 20 23:31:45 2016 +0530
>> # Node ID a55c63eb6baf5165fbee616e0988b9079a2bc77b
>> # Parent  ae89177a49c51f66962202598a44643c1dd1d18f
>> py3: shift from __future__ import absolute import to beginning (issue5269)
> 
> Sure, looks good to me.
> _______________________________________________
> Mercurial-devel mailing list
> Mercurial-devel@mercurial-scm.org
> https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel
>
Yuya Nishihara - June 21, 2016, 12:08 p.m.
On Tue, 21 Jun 2016 04:31:02 +0200, Pierre-Yves David wrote:
> Pushed, thanks.
> 
> On 06/21/2016 12:37 AM, Sean Farley wrote:
> > Pulkit Goyal <7895pulkit@gmail.com> writes:
> >   
> >> # HG changeset patch
> >> # User Pulkit Goyal <7895pulkit@gmail.com>
> >> # Date 1466445705 -19800
> >> #      Mon Jun 20 23:31:45 2016 +0530
> >> # Node ID a55c63eb6baf5165fbee616e0988b9079a2bc77b
> >> # Parent  ae89177a49c51f66962202598a44643c1dd1d18f
> >> py3: shift from __future__ import absolute import to beginning (issue5269)

This seems appropriate for stable.

Patch

diff -r ae89177a49c5 -r a55c63eb6baf contrib/win32/hgwebdir_wsgi.py
--- a/contrib/win32/hgwebdir_wsgi.py	Sun Jun 05 20:57:08 2016 +0530
+++ 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