diff options
author | Richard van der Hoff <1389908+richvdh@users.noreply.github.com> | 2020-01-17 10:33:24 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-17 10:33:24 +0000 |
commit | 59dc87c618861f9d353657b533f55f7e94c5ab37 (patch) | |
tree | a4dab2b9adfe77f82899e3714b199c1be01b4852 /synapse/util/__init__.py | |
parent | Delegate remote_user_id mapping to the saml mapping provider (#6723) (diff) | |
parent | changelog (diff) | |
download | synapse-59dc87c618861f9d353657b533f55f7e94c5ab37.tar.xz |
Merge pull request #6724 from matrix-org/rav/log_saml_attributes
Log saml assertions rather than the whole response
Diffstat (limited to 'synapse/util/__init__.py')
-rw-r--r-- | synapse/util/__init__.py | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/synapse/util/__init__.py b/synapse/util/__init__.py index 7856353002..60f0de70f7 100644 --- a/synapse/util/__init__.py +++ b/synapse/util/__init__.py @@ -15,7 +15,6 @@ import logging import re -from itertools import islice import attr @@ -107,22 +106,6 @@ class Clock(object): raise -def batch_iter(iterable, size): - """batch an iterable up into tuples with a maximum size - - Args: - iterable (iterable): the iterable to slice - size (int): the maximum batch size - - Returns: - an iterator over the chunks - """ - # make sure we can deal with iterables like lists too - sourceiter = iter(iterable) - # call islice until it returns an empty tuple - return iter(lambda: tuple(islice(sourceiter, size)), ()) - - def log_failure(failure, msg, consumeErrors=True): """Creates a function suitable for passing to `Deferred.addErrback` that logs any failures that occur. |