Skip to content
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

Merged
merged 4 commits into from
Jun 15, 2020
Merged

SafeConfigParser deprecated. #1155

merged 4 commits into from
Jun 15, 2020

Conversation

Julian-O
Copy link
Contributor

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.

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.
Copy link
Member

@AndreMiras AndreMiras left a 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.
Copy link
Member

@AndreMiras AndreMiras left a 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

Julian-O added 2 commits June 15, 2020 20:57
Another instance of SafeConfigParser also converted to ConfigParser.

Removed test to see if configparser can be imported - only fails on Python 2.
Copy link
Member

@AndreMiras AndreMiras left a 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

@AndreMiras AndreMiras merged commit a3704e7 into kivy:master Jun 15, 2020
@Julian-O Julian-O deleted the Julian-O-refactor-7 branch June 15, 2020 12:26
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.

2 participants