-
Notifications
You must be signed in to change notification settings - Fork 495
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SafeConfigParser deprecated. #1155
Conversation
SafeConfigParser was renamed to ConfigParser in Python 3.2. Use of it in Python 3.7 gives a DeprecationWarning. As Buildozer is not supported at below Python 3.2, simply replaced all mentions. Warning is no longer issued.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the update.
Yes the config parser thing needs some love too.
Actually you're missing a few places where it's still used, could you please also update?
Another instance of SafeConfigParser also converted to ConfigParser. Additionally: * Removed test to see if configparser can be imported - only fails on Python 2. * Re-ordered imports to conform with PEP8. * Only import sys once.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks again for the update.
I'd rather focus on that only task and not re-org imports actually 😬
Also commit message says:
Additionally:
* Removed test to see if configparser can be imported - only fails on Python 2.
* Re-ordered imports to conform with PEP8.
* Only import sys once.
I don't see where sys
was imported twice. I saw only one import sys
instance that you removed.
Also this part Removed test to see if configparser can be imported - only fails on Python 2.
I don't see.
Would you mind just addressing the configparser thing and keep the PEP8 cosmetic for another discussion?
If you know how to squash theses changes, then better, otherwise we would do it at merge time (and try to edit the commit message accordingly).
Feel free to ping me on Discord if needed
This reverts commit 96f5b2e.
Another instance of SafeConfigParser also converted to ConfigParser. Removed test to see if configparser can be imported - only fails on Python 2.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for addressing 👍
Will (squash &) merge when the build turns green
SafeConfigParser was renamed to ConfigParser in Python 3.2. Use of it in Python 3.7 gives a DeprecationWarning.
As Buildozer is not supported at below Python 3.2, simply replaced all mentions.
Warning is no longer issued.