Open prjemian opened 1 year ago
And here (where this was first noticed): https://github.com/slacmshankar/epicsarchiverap/blob/d3dd9cc144004ab84b49b6d7fcd5c575d67404d8/docs/samples/single_machine_install.sh#L333
I agree; fairly large task but will try to wrap up by the next release.
@slacmshankar you might be able to use 2to3
to automate the conversion, it has worked quite well for me:
2to3 -w -f all -f buffer -f idioms -f set_literal --no-diffs .
Doing this on the codebase works (although I haven't the Python code), the only issue I found is that it double wraps print
arguments in parentheses in code that is already Python3.
Support for Python 2.7 has ended officially. The Python release schedule shows the oldest supported release is 3.7.
It's time to update the use of Python to the current release schedule.
Support for Python versions here varies between Py2.7 and Py3. Amongst the syntax changes, the
print
statement in Py2.7 has changed to aprint()
function in Py3. This use can fingerprint Python files in need of upgrade to Py3. Another such fingerprint is in the first line where/usr/bin/env
is called:(Two of these 32 files call for python3.)