[PATCH 5 of 6] py3: convert print to a function call in a few tests
yuya at tcha.org
Sun Sep 30 09:42:28 EDT 2018
On Sun, 30 Sep 2018 09:24:36 -0400, Matt Harbison wrote:
> > On Sep 30, 2018, at 8:08 AM, Yuya Nishihara <yuya at tcha.org> wrote:
> >> On Sun, 30 Sep 2018 01:46:24 -0400, Matt Harbison wrote:
> >> # HG changeset patch
> >> # User Matt Harbison <matt_harbison at yahoo.com>
> >> # Date 1538284241 14400
> >> # Sun Sep 30 01:10:41 2018 -0400
> >> # Node ID a690c4f6b7a38a09346dcf51691fd2ccddefaa12
> >> # Parent e2b23a432bcf799a5126a558d6b10a4c96929a2a
> >> py3: convert print to a function call in a few tests
> >> - > print u'''
> >> + > print(u'''
> >>> echo a > text
> >>> hg add text
> >>> hg --encoding utf-8 commit -u '\u30A2' -m none
> >> @@ -1538,13 +1538,13 @@ test author/desc/keyword in problematic
> >>> hg --encoding utf-8 commit -u none -m '\u30A2'
> >>> echo d > text
> >>> hg --encoding utf-8 commit -u none -m '\u30C2'
> >> - > '''.encode('utf-8')
> >> + > ''').encode('utf-8')
> > Maybe .encode() should be inside the paren.
> Yeah, that makes more sense. Odd that the test ran fine in both py2 and py3. Can you amend that?
More information about the Mercurial-devel