Skip to content

Update to Python 3#23

Merged
baagaard-usgs merged 12 commits intomasterfrom
baagaard/update-python-3
Jan 7, 2021
Merged

Update to Python 3#23
baagaard-usgs merged 12 commits intomasterfrom
baagaard/update-python-3

Conversation

@baagaard-usgs
Copy link
Copy Markdown
Contributor

Updates for Python 3 (breaks compatibility with Python 2). Increment version number to 0.9.0.

  • Update .cfg parser
  • Update use of metaclass
  • Fix unit divisions and comparisons
  • Fix UserDict import (now in collections).
  • Replace basestring with str.
  • Replace popen2.Popen4 with subprocess.Popen.
  • Fix StringIO import; StringIO is now in io module.
  • Fix urllib; use urllib.parse.unquote() and urllib.request.urlopen().
  • Allow duplicate sections in .cfg files; cfg/Parser will merge results.

Closes #4

@baagaard-usgs baagaard-usgs merged commit 3b84444 into master Jan 7, 2021
@baagaard-usgs baagaard-usgs deleted the baagaard/update-python-3 branch January 7, 2021 18:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Convert to Python 3

1 participant