summary refs log tree commit diff
path: root/synapse
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2021-03-26 17:45:09 +0000
committerErik Johnston <erik@matrix.org>2021-03-26 17:45:36 +0000
commitc4d468b69fe6bb44dbd1d28aaf9200511c63eb49 (patch)
tree4c30c4dfdd358829ba30fc6ad9ea26f361bb86a2 /synapse
parentReport cache memory usage (diff)
downloadsynapse-c4d468b69fe6bb44dbd1d28aaf9200511c63eb49.tar.xz
Don't ban __iter__
Diffstat (limited to 'synapse')
-rw-r--r--synapse/types.py4
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.