diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2014-03-18 17:24:55 +0100 |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2014-03-18 17:24:55 +0100 |
commit | c7b6adc38c1cc78498e695406fdb359048f731d5 (patch) | |
tree | baf3149076b6511ab0069138ab800ebf213e8b12 /paste/httpexceptions.py | |
parent | c869864780439cdc52618b31ca3b76b4af6eadee (diff) | |
download | paste-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.py | 2 |
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): |