summaryrefslogtreecommitdiff
path: root/paste/exceptions
diff options
context:
space:
mode:
Diffstat (limited to 'paste/exceptions')
-rw-r--r--paste/exceptions/collector.py4
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__']