Skip to content

Avoid DeprecationWarning when importing config parser in Python 3.2+#18

Open
drewbrew wants to merge 1 commit intoMachinarum:masterfrom
drewbrew:silence-deprecation-warning
Open

Avoid DeprecationWarning when importing config parser in Python 3.2+#18
drewbrew wants to merge 1 commit intoMachinarum:masterfrom
drewbrew:silence-deprecation-warning

Conversation

@drewbrew
Copy link

Since Python 2 is getting officially retired at the end of this year, change the default import name to ConfigParser as well.

This is because the class was renamed in Python 3.2 from SafeConfigParser to ConfigParser and a deprecation warning was put in its place. See python/cpython@7f64c8a for more.

This is because the class was renamed in Python 3.2 from
`SafeConfigParser` to `ConfigParser` and a deprecation warning was
put in its place. See
python/cpython@7f64c8a
for more.
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.

1 participant