web/request.py
changeset 10662 10942ed172de
parent 10618 3274a1648c7e
child 10671 e08102f45237
--- a/web/request.py	Tue Sep 08 18:04:57 2015 +0200
+++ b/web/request.py	Tue Sep 15 16:15:03 2015 +0200
@@ -138,7 +138,7 @@
         #: received headers
         self._headers_in = Headers()
         if headers is not None:
-            for k, v in headers.iteritems():
+            for k, v in headers.items():
                 self._headers_in.addRawHeader(k, v)
         #: form parameters
         self.setup_params(form)
@@ -251,7 +251,7 @@
         if params is None:
             return
         encoding = self.encoding
-        for param, val in params.iteritems():
+        for param, val in params.items():
             if isinstance(val, (tuple, list)):
                 val = [unicode(x, encoding) for x in val]
                 if len(val) == 1:
@@ -801,7 +801,7 @@
     def header_accept_language(self):
         """returns an ordered list of preferred languages"""
         acceptedlangs = self.get_header('Accept-Language', raw=False) or {}
-        for lang, _ in sorted(acceptedlangs.iteritems(), key=lambda x: x[1],
+        for lang, _ in sorted(acceptedlangs.items(), key=lambda x: x[1],
                               reverse=True):
             lang = lang.split('-')[0]
             yield lang