diff options
author | Richard van der Hoff <1389908+richvdh@users.noreply.github.com> | 2018-04-20 15:43:52 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-20 15:43:52 +0100 |
commit | dc875d2712d1b844fa8ef398bab7894867d0cf60 (patch) | |
tree | 36477571ae07c3aab0898c8e994cf9964232cbde /synapse/api/errors.py | |
parent | Merge pull request #3107 from NotAFile/py3-bool-nonzero (diff) | |
parent | Use six.itervalues in some places (diff) | |
download | synapse-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.py | 3 |
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 |