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

Port away from imp module, use importlib instead #1631

Closed
wants to merge 1 commit into from
Closed

Port away from imp module, use importlib instead #1631

wants to merge 1 commit into from

Conversation

Hains
Copy link
Contributor

@Hains Hains commented Nov 9, 2023

Based on:
https://python-future.org/_modules/imp.html
https://docs.python.org/3/whatsnew/3.12.html

The imp module is deprecated in favour of importlib and slated for removal in Python 3.12.

Tested with Python 3.9.9 (.pyc files) and Python 3.12 (.py files)

Based on:
https://python-future.org/_modules/imp.html
https://docs.python.org/3/whatsnew/3.12.html

The imp module is deprecated in favour of importlib and slated for removal in Python 3.12.

Tested with Python 3.9.9 (.pyc files) and Python 3.12 (.py files)
Copy link

sonarcloud bot commented Nov 9, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@jbleyel
Copy link
Contributor

jbleyel commented Nov 9, 2023

Hello @Hains ,

what's the problem with my implementation?

https://github.com/oe-alliance/OpenWebif/blob/main/plugin/controllers/base.py#L105-L107

@Hains
Copy link
Contributor Author

Hains commented Nov 9, 2023

Euh nothing. I didn't know about it.

@Hains Hains closed this Nov 9, 2023
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