Re: [PATCH] perf scripts python: Add Python 3 support to mem-phys-addr.py

2019-01-21 Thread Tony Jones
On 1/17/19 1:48 AM, seeteena wrote: > I have added >> You have not added "from __future__ import print_function", so you're >> relying on a Python 2 parsing oddity to make this work. I didn't see Jon's comment earlier. Sorry to have given conflicting advice. I'd not considered it a parsing

Re: [PATCH] perf scripts python: Add Python 3 support to mem-phys-addr.py

2019-01-17 Thread seeteena
I have added On 01/16/2019 10:02 PM, Jonathan Corbet wrote: On Wed, 16 Jan 2019 21:53:36 +0530 Seeteena Thoufeek wrote: Support both Python 2 and Python 3 in mem-phys-addr.py. ``print`` is now a function rather than a statement. This should have no functional change. Fix lambda syntax

Re: [PATCH] perf scripts python: Add Python 3 support to mem-phys-addr.py

2019-01-16 Thread Jonathan Corbet
On Wed, 16 Jan 2019 21:53:36 +0530 Seeteena Thoufeek wrote: > Support both Python 2 and Python 3 in mem-phys-addr.py. ``print`` is now a > function rather than a statement. This should have no functional change. > > Fix lambda syntax error. So, I just picked one of these at random >

[PATCH] perf scripts python: Add Python 3 support to mem-phys-addr.py

2019-01-16 Thread Seeteena Thoufeek
Support both Python 2 and Python 3 in mem-phys-addr.py. ``print`` is now a function rather than a statement. This should have no functional change. Fix lambda syntax error. Signed-off-by: Seeteena Thoufeek Reviewed-by: Ravi Bangoria --- tools/perf/scripts/python/mem-phys-addr.py | 12