diff options
author | Gerion Entrup <gerion.entrup@flump.de> | 2019-05-02 13:36:32 +0200 |
---|---|---|
committer | Gerion Entrup <gerion.entrup@flump.de> | 2019-05-24 12:47:40 +0200 |
commit | af228896374324d0bb52f03aee810490b2313603 (patch) | |
tree | 230bfad61207df9bbb663baa50b0a547754dbd55 /dev-python/rauth/files/rauth-0.7.2-fix-python-3.6.patch | |
parent | media-plugins/hyperion: qt5 is mandatory (diff) | |
download | gerislay-af228896374324d0bb52f03aee810490b2313603.tar.gz gerislay-af228896374324d0bb52f03aee810490b2313603.tar.bz2 gerislay-af228896374324d0bb52f03aee810490b2313603.zip |
dev-python/rauth: python 3.6 and 3.7 support
Signed-off-by: Gerion Entrup <gerion.entrup@flump.de>
Diffstat (limited to 'dev-python/rauth/files/rauth-0.7.2-fix-python-3.6.patch')
-rw-r--r-- | dev-python/rauth/files/rauth-0.7.2-fix-python-3.6.patch | 32 |
1 files changed, 32 insertions, 0 deletions
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" <seregon@gmail.com> +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 + |