pcp
[Top] [All Lists]

qa/secure/*.py scripts don't work with python3?

To: PCP <pcp@xxxxxxxxxxx>
Subject: qa/secure/*.py scripts don't work with python3?
From: Ken McDonell <kenj@xxxxxxxxxxxxxxxx>
Date: Tue, 11 Aug 2015 09:49:55 +1000
Delivered-to: pcp@xxxxxxxxxxx
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.8.0
kenj@vm05:~/src/pcp/qa$ python3.4 secure/pcppdu.py
  File "secure/pcppdu.py", line 260
    print "len string =", len(blob)
                       ^
SyntaxError: invalid syntax

but this is OK ...

kenj@vm05:~/src/pcp/qa$ python2.7 secure/pcppdu.py

This is from qa/547 where python is invoked directly (so it is lotto-time for the version you get).

Do the Python scripts need to be fixed to work for all versions of Python (the non-programming language, IMHO)?

Or does the QA scripts need to sniff out Python Version 2.? and run that explicitly, else give up?

<Prev in Thread] Current Thread [Next in Thread>