[Piuparts-devel] [py3porters-devel] when to remove python2 support? (was Re: [Needs Port] piuparts.debian.org

Dmitry Shachnev mitya57 at debian.org
Fri May 1 13:25:49 UTC 2015


Hi,

On Fri, 1 May 2015 13:27:52 +0200, Bernhard Janetzki wrote:
> I’m also not sure if this change is necessary. At least it keeps
> the output identical :-)
>
> python2 -c "print(1,2)"
> (1, 2)
> python3 -c "print(1,2)"
> 1 2
> python3 -c "print((1,2))"
> (1, 2)

There is no need for double braces everywhere, especially if
you already use print_function.

I.e. this chunk is senseless:

    - print("Killed %d" % pid)
    + print(("Killed %d" % pid))

--
Dmitry Shachnev
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <http://lists.alioth.debian.org/pipermail/piuparts-devel/attachments/20150501/d5f49951/attachment.sig>


More information about the Piuparts-devel mailing list