summaryrefslogtreecommitdiff
path: root/paste/httpheaders.py
diff options
context:
space:
mode:
authorCyril Roelandt <cyril.roelandt@enovance.com>2014-03-18 12:47:16 +0100
committerCyril Roelandt <cyril.roelandt@enovance.com>2014-03-18 12:47:16 +0100
commita1158cf8f4d4e59988e5deea2bf28fb742dd716f (patch)
tree4cc6999c1a7aa27a8c7370233d3111ec4b8aea11 /paste/httpheaders.py
parentbc2d48c473952247fe26c7058cb1a8ec746ff1d8 (diff)
downloadpaste-a1158cf8f4d4e59988e5deea2bf28fb742dd716f.tar.gz
Python 3: Replace "for ... in dict.items()" with "for ... in six.iteritems(dict)"
Same change for itervalues().
Diffstat (limited to 'paste/httpheaders.py')
-rw-r--r--paste/httpheaders.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/paste/httpheaders.py b/paste/httpheaders.py
index 2a11f6d..7c57c29 100644
--- a/paste/httpheaders.py
+++ b/paste/httpheaders.py
@@ -171,7 +171,7 @@ REQUEST_METHOD = EnvironVariable("REQUEST_METHOD")
SCRIPT_NAME = EnvironVariable("SCRIPT_NAME")
PATH_INFO = EnvironVariable("PATH_INFO")
-for _name, _obj in globals().items():
+for _name, _obj in six.iteritems(globals()):
if isinstance(_obj, EnvironVariable):
__all__.append(_name)
@@ -740,7 +740,7 @@ class _CacheControl(_MultiValueHeader):
result.append('max-age=%d' % max_age)
if s_maxage is not None:
result.append('s-maxage=%d' % s_maxage)
- for (k, v) in extensions.items():
+ for (k, v) in six.iteritems(extensions):
if k not in self.extensions:
raise AssertionError("unexpected extension used: '%s'" % k)
result.append('%s="%s"' % (k.replace("_", "-"), v))
@@ -1099,6 +1099,6 @@ for head in _headers.values():
__all__.append(headname)
__pudge_all__ = __all__[:]
-for _name, _obj in globals().items():
+for _name, _obj in six.iteritems(globals()):
if isinstance(_obj, type) and issubclass(_obj, HTTPHeader):
__pudge_all__.append(_name)