python-github-backup
python-github-backup copied to clipboard
ModuleNotFoundError: No module named 'urllib2'
Is there some easy way that I could try to fix this issue and make a PR?
Basically all MRs welcome. This might be a python2 vs python3 thing.
Is this script supposed to be python3 or python2? Or is it supporting both?
Both if possible.
https://github.com/josegonzalez/python-github-backup/blob/master/requirements.txt is not listing it
Note that
The urllib2 module has been split across several modules in Python 3 named urllib.request and urllib.error. The 2to3 tool will automatically adapt imports when converting your sources to Python 3.
https://docs.python.org/2.7/library/urllib2.html
Given that python2 is EOLed maybe it would be better to supporting just Python3?