summaryrefslogtreecommitdiff
path: root/pysnmp/error.py
diff options
context:
space:
mode:
authorIlya Etingof <etingof@gmail.com>2019-02-10 16:38:35 +0100
committerGitHub <noreply@github.com>2019-02-10 16:38:35 +0100
commit588b9b902d191d8010cb6b247fcb07887d59542c (patch)
tree419b01d2598e91331db784ac3a6675324aba8c24 /pysnmp/error.py
parent9664858b145140a4fbb2a22b633c1ab41c2555bd (diff)
downloadpysnmp-git-588b9b902d191d8010cb6b247fcb07887d59542c.tar.gz
Uppercase global constants (#238)
This is a massive patch essentially upper-casing global/class attributes that mean to be constants. Some previously exposed constants have been preserved for compatibility reasons (notably, in `hlapi`), though the rest might break user code relying on pysnmp 4.
Diffstat (limited to 'pysnmp/error.py')
-rw-r--r--pysnmp/error.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/pysnmp/error.py b/pysnmp/error.py
index f8004638..e53c6af4 100644
--- a/pysnmp/error.py
+++ b/pysnmp/error.py
@@ -9,6 +9,7 @@ import sys
class PySnmpError(Exception):
+
def __init__(self, *args):
msg = args and str(args[0]) or ''