Implement support for Python 3 for users who may be running this script on systems that do not support Python 2. This should maintain backwards compatibility as well which is validated by using a containerized environment:
Python 3:
docker run -it --rm -v "$PWD:/usr/src/app:Z" python:3 bash -c "pip install pyfxa; python /usr/src/app/bin/delete_user_data.py <email>"
Password for <email>:
Enter TOTP code: <totp_code>
Deleting from <api_endpoint>
<Response [200]>
Python 2:
docker run -it --rm -v "$PWD:/usr/src/app:Z" python:2 bash -c "pip install pyfxa; python /usr/src/app/bin/delete_user_data.py <email>"
Password for <email>:
Enter TOTP code: <totp_code>
Deleting from <api_endpoint>
<Response [200]>
Implement support for Python 3 for users who may be running this script on systems that do not support Python 2. This should maintain backwards compatibility as well which is validated by using a containerized environment:
Python 3:
Python 2: