8000 just use the built in function · ptarjan/python-oauth@a9d2018 · GitHub
[go: up one dir, main page]

Skip to content

Commit a9d2018

Browse files
committed
just use the built in function
1 parent 055af91 commit a9d2018

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

oauth/oauth.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -240,11 +240,7 @@ def get_normalized_parameters(self):
240240
except:
241241
pass
242242
param_str = urlparse.urlparse(self.http_url)[4] # query
243-
for p in param_str.split("&"):
244-
s = p.split("=", 1)
245-
if len(s) == 2 :
246-
k,v = s
247-
params[k] = v
243+
params.update(OAuthRequest._split_url_string(param_str))
248244

249245
# Escape key values before sorting.
250246
key_values = [(escape(_utf8_str(k)), escape(_utf8_str(v))) \

0 commit comments

Comments
 (0)
0