aboutsummaryrefslogtreecommitdiff
blob: 4c362388f2351dfa5588e58c08e52fc13876d51d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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