Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 8c17369

Browse files
committed
remove dict comprehension for 2.6 compat
1 parent 5273d16 commit 8c17369

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

stream/httpsig/tests/test_verify.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@ def _parse_auth(self, auth):
2020
# convert into [(k1,"v1"), (k2, "v2"), ...]
2121
param_pairs = [p.split('=', 1) for p in param_list]
2222
# convert into {k1:v1, k2:v2, ...}
23-
param_dict = {k: v.strip('"') for k, v in param_pairs}
23+
param_dict = {}
24+
for k, v in param_pairs:
25+
param_dict[k] = v.strip('"')
2426
return param_dict
2527

2628

0 commit comments

Comments
 (0)