diff options
author | Erik Johnston <erik@matrix.org> | 2021-03-26 17:45:09 +0000 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2021-03-26 17:45:36 +0000 |
commit | c4d468b69fe6bb44dbd1d28aaf9200511c63eb49 (patch) | |
tree | 4c30c4dfdd358829ba30fc6ad9ea26f361bb86a2 /synapse | |
parent | Report cache memory usage (diff) | |
download | synapse-c4d468b69fe6bb44dbd1d28aaf9200511c63eb49.tar.xz |
Don't ban __iter__
Diffstat (limited to 'synapse')
-rw-r--r-- | synapse/types.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/types.py b/synapse/types.py index b08ce90140..5f54b0bd9b 100644 --- a/synapse/types.py +++ b/synapse/types.py @@ -231,8 +231,8 @@ class DomainSpecificString( # Deny iteration because it will bite you if you try to create a singleton # set by: # users = set(user) - def __iter__(self): - raise ValueError("Attempted to iterate a %s" % (type(self).__name__,)) + # def __iter__(self): + # raise ValueError("Attempted to iterate a %s" % (type(self).__name__,)) # Because this class is a namedtuple of strings and booleans, it is deeply # immutable. |