Re: [PATCH] Convert contrib/mklog script to Python 3

2019-05-21 Thread Janne Blomqvist
On Tue, May 21, 2019 at 10:47 AM Janne Blomqvist wrote: > > On Tue, May 21, 2019 at 10:32 AM Martin Liška wrote: > > > > Hi. > > > > There's a regression I see after the transition to python3: > > > > $ cat /tmp/patch > > diff --git a/gcc/testsuite/gcc.dg/pr90263.c b/gcc/testsuite/gcc.dg/pr90263.

Re: [PATCH] Convert contrib/mklog script to Python 3

2019-05-21 Thread Janne Blomqvist
On Tue, May 21, 2019 at 10:32 AM Martin Liška wrote: > > Hi. > > There's a regression I see after the transition to python3: > > $ cat /tmp/patch > diff --git a/gcc/testsuite/gcc.dg/pr90263.c b/gcc/testsuite/gcc.dg/pr90263.c > index acf3db16640..3222a5331c1 100644 > --- a/gcc/testsuite/gcc.dg/pr90

Re: [PATCH] Convert contrib/mklog script to Python 3

2019-05-21 Thread Martin Liška
Hi. There's a regression I see after the transition to python3: $ cat /tmp/patch diff --git a/gcc/testsuite/gcc.dg/pr90263.c b/gcc/testsuite/gcc.dg/pr90263.c index acf3db16640..3222a5331c1 100644 --- a/gcc/testsuite/gcc.dg/pr90263.c +++ b/gcc/testsuite/gcc.dg/pr90263.c @@ -1,5 +1,6 @@ /* PR midd

Re: [PATCH] Convert contrib/mklog script to Python 3

2019-05-20 Thread Jeff Law
On 5/20/19 1:49 PM, Janne Blomqvist wrote: > Upstream will drop support for Python 2.x on January 1, 2020. This > patch converts the contrib/mklog script to Python 3. The process for > the conversion was as follows. > > - Use the futurize tool (https://python-future.org ) to apply the > print_

[PATCH] Convert contrib/mklog script to Python 3

2019-05-20 Thread Janne Blomqvist
Upstream will drop support for Python 2.x on January 1, 2020. This patch converts the contrib/mklog script to Python 3. The process for the conversion was as follows. - Use the futurize tool (https://python-future.org ) to apply the print_with_import, except, and dict transformations. - Remov