Re: [PATCH] trace-cmd: python: Apply 2to3 print transformation to python files

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri,  3 May 2019 18:15:41 +0200
John Kacur <jkacur@xxxxxxxxxx> wrote:

> In preperation for the python plugin to work with python3,
> apply the 2to3 print transformation on the python files.
> 
> In python3 print is a function so needs to be bracketted.
> This is safe to do because the syntax is compatible with python2 as well
> 
> Signed-off-by: John Kacur <jkacur@xxxxxxxxxx>
> ---
>  python/event-viewer.py | 14 +++++++-------
>  python/tracecmd.py     |  6 +++---
>  python/tracecmdgui.py  | 12 ++++++------
>  3 files changed, 16 insertions(+), 16 deletions(-)

Allied. Thanks John!

-- Steve



[Index of Archives]     [Linux USB Development]     [Linux USB Development]     [Linux Audio Users]     [Yosemite Hiking]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux