| author | ymh <ymh.work@gmail.com> |
| Wed, 19 Sep 2012 01:57:47 +0900 | |
| changeset 1 | 08f6e99af174 |
| permissions | -rwxr-xr-x |
|
1
08f6e99af174
prepare the installation of the ldt platform
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
1 |
diff -r 7ea87e3229fd5c4eebd0 oauth2/__init__.py |
|
08f6e99af174
prepare the installation of the ldt platform
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
2 |
@@ -385,386 +385,391 @@ |
|
08f6e99af174
prepare the installation of the ldt platform
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
3 |
url_items = self._split_url_string(query).items() |
|
08f6e99af174
prepare the installation of the ldt platform
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
4 |
non_oauth_url_items = list([(k, v) for k, v in url_items if not k.startswith('oauth_')]) |
|
08f6e99af174
prepare the installation of the ldt platform
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
5 |
|
|
08f6e99af174
prepare the installation of the ldt platform
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
6 |
- items.extend(non_oauth_url_items) |
|
08f6e99af174
prepare the installation of the ldt platform
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
7 |
+ for (key,value) in non_oauth_url_items: |
|
08f6e99af174
prepare the installation of the ldt platform
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
8 |
+ if (key,value) not in items: |
|
08f6e99af174
prepare the installation of the ldt platform
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
9 |
+ items.append((key,value)) |
|
08f6e99af174
prepare the installation of the ldt platform
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
10 |
|
|
08f6e99af174
prepare the installation of the ldt platform
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
11 |
encoded_str = urllib.urlencode(sorted(items)) |