datatracker
datatracker copied to clipboard
add-old-drafts-from-archive script is outdated
Describe the issue
The bin/add-old-drafts-from-archive.py
script is outdated and not compatible with Python 3 - it still uses the Python 2 print statement at least. This should be updated if it's still in use. In addition to bringing it forward to Python 3 syntax, it'll need to be updated to use timezone-aware datetimes.
Code of Conduct
- [X] I agree to follow the IETF's Code of Conduct
It has not been run since the py3 transition, clearly, but it is a utility that we need to maintain - it should probably be moved to be a management command, and it needs review and updating to match current expectations:
- It should look for and use xml for parsing authors, etc. when available.
- It should be looking in the archive, not the repository. (We have some cleanup to do around redundant names of paths into those two things).
In the short term, it would be good to commit a change that would stub out the content of this in case someone tried to run it without looking.