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

Removed imp and changed import calls in pysnmp/smi/builder.py #40

Closed
wants to merge 1 commit into from

Conversation

bamboo2panda
Copy link

Changed imports of importlib.util and importlib.machinery to explicit import (https://discuss.python.org/t/python3-11-importlib-no-longer-exposes-util/25641/10).

Removed alternative way to get PY_MAGIC_NUMBER, SOURCE_SUFFIXES and BYTECODE_SUFFIXES in pysnmp/smi/builder.py via imp module because it was removed in Python 3.12 (https://docs.python.org/3/whatsnew/3.12.html)

… import (https://discuss.python.org/t/python3-11-importlib-no-longer-exposes-util/25641/10).

Removed alternative way to get PY_MAGIC_NUMBER, SOURCE_SUFFIXES and BYTECODE_SUFFIXES in pysnmp/smi/builder.py via imp module because it was removed in Python 3.12 (https://docs.python.org/3/whatsnew/3.12.html)
lextm added a commit that referenced this pull request Jan 12, 2024
@lextm
Copy link

lextm commented Jan 12, 2024

While you pointed out the issue with Python 3.12, the fix proposed isn't the best (might break old Python versions).

@lextm lextm closed this Jan 12, 2024
@lextm
Copy link

lextm commented Jan 12, 2024

Used another way to fix it in latest release 5.0.33. You might take a look there.

@lextm lextm added bug Something isn't working area:pysnmp PySNMP package labels Jan 13, 2024
lextm added a commit that referenced this pull request Mar 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:pysnmp PySNMP package bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants