python-Paste/python37.patch

24 lines
720 B
Diff
Raw Normal View History

# HG changeset patch
# User Miro Hrončok <miro@hroncok.cz>
# Date 1528476582 -7200
# Fri Jun 08 18:49:42 2018 +0200
# Branch py37
# Node ID c5a2c7e3191cdcebf3fa5f0e52f55910ed2120b9
# Parent 0e5a48796ab969d874c6b772c5c33561ac2d1b0d
Don't raise StopIteration from generator, return instead
See https://www.python.org/dev/peps/pep-0479/
diff -r 0e5a48796ab9 -r c5a2c7e3191c paste/auth/digest.py
--- a/paste/auth/digest.py Tue Mar 08 16:29:31 2016 -0800
+++ b/paste/auth/digest.py Fri Jun 08 18:49:42 2018 +0200
@@ -57,7 +57,7 @@
prev = item
yield prev.strip()
- raise StopIteration
+ return
def _auth_to_kv_pairs(auth_string):
""" split a digest auth string into key, value pairs """