summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorelie <elie>2011-01-20 18:24:02 +0000
committerelie <elie>2011-01-20 18:24:02 +0000
commit327b236273ad850cac89184cf07fe4c3a00f813f (patch)
treebcd64ec6a784033578b18bbe4d4e18a7d02fc976
parentbdb307e07c0e71647c4d4d9a29501562e05197a8 (diff)
downloadpysnmp-git-327b236273ad850cac89184cf07fe4c3a00f813f.tar.gz
default debug.logger is now just a zero value instead of an object
what saves big on frequent calls
-rw-r--r--pysnmp/debug.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/pysnmp/debug.py b/pysnmp/debug.py
index 308ea65d..6500e2d6 100644
--- a/pysnmp/debug.py
+++ b/pysnmp/debug.py
@@ -51,7 +51,9 @@ class Debug:
def __rand__(self, flag):
return flag & self._flags
-logger = Debug()
+# This will yield false from bitwise and with a flag, and save
+# on unnecessary calls
+logger = 0
def setLogger(l):
global logger