summary refs log tree commit diff
path: root/synapse/api/errors.py
diff options
context:
space:
mode:
authorRichard van der Hoff <1389908+richvdh@users.noreply.github.com>2018-04-20 15:43:52 +0100
committerGitHub <noreply@github.com>2018-04-20 15:43:52 +0100
commitdc875d2712d1b844fa8ef398bab7894867d0cf60 (patch)
tree36477571ae07c3aab0898c8e994cf9964232cbde /synapse/api/errors.py
parentMerge pull request #3107 from NotAFile/py3-bool-nonzero (diff)
parentUse six.itervalues in some places (diff)
downloadsynapse-dc875d2712d1b844fa8ef398bab7894867d0cf60.tar.xz
Merge pull request #3106 from NotAFile/py3-six-itervalues-1
Use six.itervalues in some places
Diffstat (limited to 'synapse/api/errors.py')
-rw-r--r--synapse/api/errors.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/synapse/api/errors.py b/synapse/api/errors.py
index bee59e80dd..a9ff5576f3 100644
--- a/synapse/api/errors.py
+++ b/synapse/api/errors.py
@@ -18,6 +18,7 @@
 import logging
 
 import simplejson as json
+from six import iteritems
 
 logger = logging.getLogger(__name__)
 
@@ -297,7 +298,7 @@ def cs_error(msg, code=Codes.UNKNOWN, **kwargs):
         A dict representing the error response JSON.
     """
     err = {"error": msg, "errcode": code}
-    for key, value in kwargs.iteritems():
+    for key, value in iteritems(kwargs):
         err[key] = value
     return err