For porting code from Python 2 to Python 3.
Requested in T243378
For porting code from Python 2 to Python 3.
Requested in T243378
I assumed the point was also to delete all scripts that don't work with python 3 because otherwise they can't be executed and are just tech debt. But no strong opinion.
If there are no currently used scripts that need conversion then I'd just close this task as resolved (as in "good enough").
I don't see any obvious gain in spending time either deleting or porting unused scripts.
I see a bunch of Bugzilla related scripts have messages "Switch to python3 using 2to3 script".
@Aklapper I would say to be able to resolve this we could _delete_ the scripts in the repo that are Python 2 and not used.
Hmm, is there anything else to do here or can this be resolved?
(I don't see much point in investing time to update those parts of the scripts that we won't use again.)
I deleted the RT-related scripts:
I think next is we can delete the "trello" scripts.
The dump script works again. It was succesfully converted by Brennen.
Change 1003070 merged by Dzahn:
[operations/puppet@production] phabricator: re-activate public dump job
https://gerrit.wikimedia.org/r/1003070
Change 1003070 had a related patch set uploaded (by Dzahn; author: Dzahn):
[operations/puppet@production] phabricator: re-activate public dump job
https://gerrit.wikimedia.org/r/1003070
I resolved merge conflicts and merged this in gitlab.
Change 993801 merged by Dzahn:
[operations/puppet@production] phabricator: fix typo in python3-pymysql package name
Change 993801 had a related patch set uploaded (by Dzahn; author: Dzahn):
[operations/puppet@production] phabricator: fix typo in python3-pymysql package name
Change 993799 merged by Dzahn:
[operations/puppet@production] phabricator: tools: install python3-pymsql for public_task_dump.py