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

Fix MIB compilation with Python reserved keywords #68

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

TCheruy
Copy link

@TCheruy TCheruy commented Jul 21, 2023

PySMI would fail to compile mibs that uses symbols that are Python reserved keywords.
Because the underlying PySNMP MIB representation is stored in Python files, those symbols are prefixed with pysmi_ here.
However, this prefix need to be striped in this check for the compilation to complete. This PR handles this.

@lextm
Copy link

lextm commented Mar 2, 2024

Cherry picked in https://github.com/lextudio/pysmi and shipped in 1.3.0 release.

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.

3 participants