diff options
author | Erik Johnston <erikj@jki.re> | 2018-05-24 16:08:57 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-24 16:08:57 +0100 |
commit | 46345187cc7fed4137ce8f669d33a6e590dca471 (patch) | |
tree | 0dc10f431ba45079c8adc71dbc898cc374146d52 /synapse/groups | |
parent | Merge branch 'master' into develop (diff) | |
parent | Replace some more comparisons with six (diff) | |
download | synapse-46345187cc7fed4137ce8f669d33a6e590dca471.tar.xz |
Merge pull request #3243 from NotAFile/py3-six-3
Replace some more comparisons with six
Diffstat (limited to 'synapse/groups')
-rw-r--r-- | synapse/groups/groups_server.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/synapse/groups/groups_server.py b/synapse/groups/groups_server.py index 2d95b04e0c..62d20ad130 100644 --- a/synapse/groups/groups_server.py +++ b/synapse/groups/groups_server.py @@ -20,6 +20,8 @@ from synapse.api.errors import SynapseError from synapse.types import GroupID, RoomID, UserID, get_domain_from_id from twisted.internet import defer +from six import string_types + logger = logging.getLogger(__name__) @@ -431,7 +433,7 @@ class GroupsServerHandler(object): "long_description"): if keyname in content: value = content[keyname] - if not isinstance(value, basestring): + if not isinstance(value, string_types): raise SynapseError(400, "%r value is not a string" % (keyname,)) profile[keyname] = value |