summaryrefslogtreecommitdiff
path: root/pysnmp/debug.py
diff options
context:
space:
mode:
authorelie <elie>2011-01-20 17:11:43 +0000
committerelie <elie>2011-01-20 17:11:43 +0000
commit2d34d4d970b975180de2e14c1ecc18c2db9838df (patch)
treebfd65788a72f82129484058f160969285f9661be /pysnmp/debug.py
parente661d69e4866c44faa98a52f106711968bf4946f (diff)
downloadpysnmp-git-2d34d4d970b975180de2e14c1ecc18c2db9838df.tar.gz
all dict.has_key() & dict.get() invocations replaced with modern syntax
(this breaks compatibility with Python 2.1 and older).
Diffstat (limited to 'pysnmp/debug.py')
-rw-r--r--pysnmp/debug.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pysnmp/debug.py b/pysnmp/debug.py
index 6f9b2c78..308ea65d 100644
--- a/pysnmp/debug.py
+++ b/pysnmp/debug.py
@@ -34,7 +34,7 @@ class Debug:
self._flags = flagNone
self._printer = self.defaultPrinter
for f in flags:
- if not flagMap.has_key(f):
+ if f not in flagMap:
raise error.PySnmpError('bad debug flag %s' % f)
self._flags = self._flags | flagMap[f]
self('debug category %s enabled' % f)