From af228896374324d0bb52f03aee810490b2313603 Mon Sep 17 00:00:00 2001 From: Gerion Entrup Date: Thu, 2 May 2019 13:36:32 +0200 Subject: dev-python/rauth: python 3.6 and 3.7 support Signed-off-by: Gerion Entrup --- .../rauth/files/rauth-0.7.2-fix-python-3.6.patch | 32 ++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 dev-python/rauth/files/rauth-0.7.2-fix-python-3.6.patch (limited to 'dev-python/rauth/files/rauth-0.7.2-fix-python-3.6.patch') diff --git a/dev-python/rauth/files/rauth-0.7.2-fix-python-3.6.patch b/dev-python/rauth/files/rauth-0.7.2-fix-python-3.6.patch new file mode 100644 index 0000000..4c36238 --- /dev/null +++ b/dev-python/rauth/files/rauth-0.7.2-fix-python-3.6.patch @@ -0,0 +1,32 @@ +From 7b59a2587a2d08a012f49e904c86db59374e63eb Mon Sep 17 00:00:00 2001 +From: "J. Kevin Bay" +Date: Sat, 21 Jan 2017 22:10:07 -0500 +Subject: [PATCH] Bugfix for issue #195 (Python 3.6 support) + +--- + rauth/utils.py | 5 ++--- + 1 file changed, 2 insertions(+), 3 deletions(-) + +diff --git a/rauth/utils.py b/rauth/utils.py +index b0b420a..6cdf5df 100644 +--- a/rauth/utils.py ++++ b/rauth/utils.py +@@ -21,13 +21,12 @@ def absolute_url(url): + + + def parse_utf8_qsl(s): +- d = dict(parse_qsl(s)) ++ d = dict() + +- for k, v in d.items(): # pragma: no cover ++ for k, v in dict(parse_qsl(s)).items(): # pragma: no cover + if not isinstance(k, bytes) and not isinstance(v, bytes): + # skip this iteration if we have no keys or values to update + continue +- d.pop(k) + if isinstance(k, bytes): + k = k.decode('utf-8') + if isinstance(v, bytes): +-- +2.21.0 + -- cgit v1.2.3-65-gdbad