summaryrefslogtreecommitdiff
path: root/paste/httpexceptions.py
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2014-03-18 17:24:55 +0100
committerVictor Stinner <victor.stinner@gmail.com>2014-03-18 17:24:55 +0100
commitc7b6adc38c1cc78498e695406fdb359048f731d5 (patch)
treebaf3149076b6511ab0069138ab800ebf213e8b12 /paste/httpexceptions.py
parentc869864780439cdc52618b31ca3b76b4af6eadee (diff)
downloadpaste-c7b6adc38c1cc78498e695406fdb359048f731d5.tar.gz
Copy the dictionary of global variables to be able to iterate over it and
modify global variables
Diffstat (limited to 'paste/httpexceptions.py')
-rw-r--r--paste/httpexceptions.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/paste/httpexceptions.py b/paste/httpexceptions.py
index 2c0c020..492f558 100644
--- a/paste/httpexceptions.py
+++ b/paste/httpexceptions.py
@@ -587,7 +587,7 @@ class HTTPVersionNotSupported(HTTPServerError):
__all__ = ['HTTPException', 'HTTPRedirection', 'HTTPError' ]
_exceptions = {}
-for name, value in six.iteritems(globals()):
+for name, value in six.iteritems(dict(globals())):
if (isinstance(value, (type, six.class_types)) and
issubclass(value, HTTPException) and
value.code):