diff options
| author | Idan Gazit <idan@gazit.me> | 2012-04-29 13:55:09 +0300 |
|---|---|---|
| committer | Idan Gazit <idan@gazit.me> | 2012-04-29 13:55:09 +0300 |
| commit | 9c66fc2a13ab0cb442ef1b340295e05c85b6b78a (patch) | |
| tree | 236c2c4beba2b83db7319b186111645237e91b08 | |
| parent | 8de472f74a37d755378d4c16a7feaf45ca894f75 (diff) | |
| download | oauthlib-9c66fc2a13ab0cb442ef1b340295e05c85b6b78a.tar.gz | |
Fix string formatting for py2.6, unbreak tests
| -rw-r--r-- | oauthlib/oauth1/rfc5849/utils.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/oauthlib/oauth1/rfc5849/utils.py b/oauthlib/oauth1/rfc5849/utils.py index 0ee4175..69eb818 100644 --- a/oauthlib/oauth1/rfc5849/utils.py +++ b/oauthlib/oauth1/rfc5849/utils.py @@ -86,7 +86,7 @@ always_safe = (u'ABCDEFGHIJKLMNOPQRSTUVWXYZ' _safe_map = {} for i, c in zip(xrange(256), str(bytearray(xrange(256)))): _safe_map[c] = (c if (i < 128 and c in always_safe) else \ - '%{:02X}'.format(i)).decode('utf-8') + '%{0:02X}'.format(i)).decode('utf-8') _safe_quoters = {} |
