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

Replace deprecated ConfigParser readfp and unittest aliases for Python 3.12 #23

Closed
hugovk opened this issue May 10, 2022 · 0 comments · Fixed by #24
Closed

Replace deprecated ConfigParser readfp and unittest aliases for Python 3.12 #23

hugovk opened this issue May 10, 2022 · 0 comments · Fixed by #24
Assignees

Comments

@hugovk
Copy link

hugovk commented May 10, 2022

iniparse uses readfp from ConfigParser which has been deprecated since Python 3.2 and will be removed in Python 3.12. It should be replaced with read_file.

python/cpython#92503

Also a number of deprecated unittest aliases are used which will be removed in 3.12. https://github.com/isidentical/teyit is a useful tool which can upgrade most of not all of them.

python/cpython#92556

See https://bugzilla.redhat.com/show_bug.cgi?id=2019017 for a list of the errors. Note it says 3.11 but these removals will actually happen in 3.12.

@jirihnidek jirihnidek self-assigned this May 11, 2022
jirihnidek added a commit that referenced this issue May 11, 2022
* Issue: #23
* BZ: https://bugzilla.redhat.com/show_bug.cgi?id=2019017
* Replaced few deprecated methods with new methods
jirihnidek added a commit that referenced this issue May 11, 2022
* Issue: #23
* BZ: https://bugzilla.redhat.com/show_bug.cgi?id=2019017
* Replaced few deprecated methods with new methods
jirihnidek added a commit that referenced this issue May 12, 2022
* Fixes: #23
* BZ: https://bugzilla.redhat.com/show_bug.cgi?id=2019017
* Replaced few deprecated methods with new methods
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 a pull request may close this issue.

2 participants