diff options
author | elie <elie> | 2011-01-20 18:24:02 +0000 |
---|---|---|
committer | elie <elie> | 2011-01-20 18:24:02 +0000 |
commit | 327b236273ad850cac89184cf07fe4c3a00f813f (patch) | |
tree | bcd64ec6a784033578b18bbe4d4e18a7d02fc976 | |
parent | bdb307e07c0e71647c4d4d9a29501562e05197a8 (diff) | |
download | pysnmp-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.py | 4 |
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 |