[PATCH 6 of 7] py3: use absolute_import in svn-safe-append.py

Yuya Nishihara yuya at tcha.org
Sat Apr 16 09:45:21 EDT 2016


On Sat, 16 Apr 2016 06:11:42 +0300, Robert Stanca wrote:
> # HG changeset patch
> # User Robert Stanca <robert.stanca7 at gmail.com>
> # Date 1460774185 -10800
> #      Sat Apr 16 05:36:25 2016 +0300
> # Node ID 9201693167c4c79552093689cfa985b04456a5d8
> # Parent  329b0dca309f81b78222d22ff2361bde29e1e71c
> py3: use absolute_import in svn-safe-append.py

Dropped this, and queued the other patches, thanks.

> diff -r 329b0dca309f -r 9201693167c4 tests/svn-safe-append.py
> --- a/tests/svn-safe-append.py	Sat Apr 16 05:34:21 2016 +0300
> +++ b/tests/svn-safe-append.py	Sat Apr 16 05:36:25 2016 +0300
> @@ -3,7 +3,9 @@
>  __doc__ = """Same as `echo a >> b`, but ensures a changed mtime of b.
>  Without this svn will not detect workspace changes."""
>  
> -import sys, os
> +from __future__ import absolute_import

  File "tests/svn-safe-append.py", line 6
    from __future__ import absolute_import
  SyntaxError: from __future__ imports must occur at the beginning of the file

You'll need to remove the unneeded "__doc__ = " statement. The first string
literal can be a module __doc__ automatically.


More information about the Mercurial-devel mailing list