15
0
forked from pool/python-Paste

- Fix build on python 3.7:

* python37.patch

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Paste?expand=0&rev=22
This commit is contained in:
Tomáš Chvátal
2018-10-18 09:20:20 +00:00
committed by Git OBS Bridge
parent f09fb5a7a1
commit 4c0317dc61
3 changed files with 38 additions and 21 deletions

23
python37.patch Normal file
View File

@@ -0,0 +1,23 @@
# 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 """