You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PySNMP incorrectly processes multiline strings when converting MIB files to Python scripts. This results in a SyntaxError due to unterminated string literals in the generated Python file.
Specifically, when a MIB file contains a multiline string (common in fields like CONTACT-INFO), the generated Python script fails to properly format these strings, leading to syntax errors when the script is executed.
Example of problematic MIB content:
CONTACT-INFO
"Company
company.com
Postal: Company.
123123 City
Street
Country
Phone: +1 123 123 12 12
EMail: [email protected]"
This results in a SyntaxError in the generated Python file:
SyntaxError: unterminated string literal (detected at line 15)
Expected behavior:
The multiline strings in MIB files should be correctly converted to valid Python multiline strings or concatenated string literals.
Actual behavior:
The conversion process results in invalid Python syntax, causing errors when attempting to use the generated Python modules.
This issue significantly impacts the usability of PySNMP for parsing and working with MIB files containing multiline strings.
The text was updated successfully, but these errors were encountered:
PySNMP incorrectly processes multiline strings when converting MIB files to Python scripts. This results in a SyntaxError due to unterminated string literals in the generated Python file.
Specifically, when a MIB file contains a multiline string (common in fields like CONTACT-INFO), the generated Python script fails to properly format these strings, leading to syntax errors when the script is executed.
Example of problematic MIB content:
This results in a SyntaxError in the generated Python file:
SyntaxError: unterminated string literal (detected at line 15)
Expected behavior:
The multiline strings in MIB files should be correctly converted to valid Python multiline strings or concatenated string literals.
Actual behavior:
The conversion process results in invalid Python syntax, causing errors when attempting to use the generated Python modules.
This issue significantly impacts the usability of PySNMP for parsing and working with MIB files containing multiline strings.
The text was updated successfully, but these errors were encountered: