diff options
author | Massimiliano Pippi <masci@evonove.it> | 2013-09-21 01:13:20 +0200 |
---|---|---|
committer | Massimiliano Pippi <masci@evonove.it> | 2013-09-21 01:13:20 +0200 |
commit | 939b05f185958723f833dcbc707a066bf3359c7e (patch) | |
tree | 0300f09e5e4ed8550c0be876aa9111872e5414b5 | |
parent | 012fbbebcdafa28340ecaf5addb5c1b9da30057b (diff) | |
download | oauthlib-939b05f185958723f833dcbc707a066bf3359c7e.tar.gz |
fixed operator precedence in duplicate_params property
-rw-r--r-- | oauthlib/common.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/oauthlib/common.py b/oauthlib/common.py index 5128efe..4a95f30 100644 --- a/oauthlib/common.py +++ b/oauthlib/common.py @@ -382,7 +382,7 @@ class Request(object): @property def duplicate_params(self): seen_keys = collections.defaultdict(int) - all_keys = (p[0] for p in self.decoded_body or [] + self.uri_query_params) + all_keys = (p[0] for p in (self.decoded_body or []) + self.uri_query_params) for k in all_keys: seen_keys[k] += 1 return [k for k, c in seen_keys.items() if c > 1] |