diff options
author | Miro Hron?ok <miro@hroncok.cz> | 2018-06-08 18:49:42 +0200 |
---|---|---|
committer | Miro Hron?ok <miro@hroncok.cz> | 2018-06-08 18:49:42 +0200 |
commit | e66badb150bda491aa82a09b4dfce711b83561b6 (patch) | |
tree | e3f03e7ce1f234e0c91075da6d0b56040f693162 | |
parent | bf91535c2481d5526fae3f6acbb5de6e46f5846c (diff) | |
download | paste-e66badb150bda491aa82a09b4dfce711b83561b6.tar.gz |
Don't raise StopIteration from generator, return instead
See https://www.python.org/dev/peps/pep-0479/
-rw-r--r-- | paste/auth/digest.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/paste/auth/digest.py b/paste/auth/digest.py index 85e0362..553bd88 100644 --- a/paste/auth/digest.py +++ b/paste/auth/digest.py @@ -57,7 +57,7 @@ def _split_auth_string(auth_string): prev = item yield prev.strip() - raise StopIteration + return def _auth_to_kv_pairs(auth_string): """ split a digest auth string into key, value pairs """ |