diff options
author | Cyril Roelandt <cyril.roelandt@enovance.com> | 2014-03-18 12:47:59 +0100 |
---|---|---|
committer | Cyril Roelandt <cyril.roelandt@enovance.com> | 2014-03-18 12:47:59 +0100 |
commit | 286427374d678bf82491f97fbc2b422d30791b90 (patch) | |
tree | ebfc9659744d92ba3a992d6b40e8aaa47f5e1988 /paste/exceptions | |
parent | a1f64ed3c2d7942ea4b05636cd83eebf8728a183 (diff) | |
download | paste-286427374d678bf82491f97fbc2b422d30791b90.tar.gz |
Python 3: Replace "dict.has_key(key)" with "key in dict"
Diffstat (limited to 'paste/exceptions')
-rw-r--r-- | paste/exceptions/collector.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/paste/exceptions/collector.py b/paste/exceptions/collector.py index 4f6d4c6..d6a30db 100644 --- a/paste/exceptions/collector.py +++ b/paste/exceptions/collector.py @@ -281,10 +281,10 @@ class ExceptionCollector(object): data['tbid'] = id(tb) # Output a traceback supplement, if any. - if locals.has_key('__traceback_supplement__'): + if '__traceback_supplement__' in locals: # Use the supplement defined in the function. tbs = locals['__traceback_supplement__'] - elif globals.has_key('__traceback_supplement__'): + elif '__traceback_supplement__' in globals: # Use the supplement defined in the module. # This is used by Scripts (Python). tbs = globals['__traceback_supplement__'] |