]> jfr.im git - z_archive/twitter.git/commitdiff
format requires names fields in python2.6
authorRouxRC <redacted>
Wed, 27 Aug 2014 12:12:39 +0000 (14:12 +0200)
committerRouxRC <redacted>
Wed, 27 Aug 2014 12:12:39 +0000 (14:12 +0200)
twitter/oauth2.py

index c50274701ef466905290af83e2960821510e05bb..6c69c2b59cbdd648a0389a9508e6bc20dff3cfd1 100644 (file)
@@ -81,8 +81,8 @@ class OAuth2(Auth):
             headers = {
                 b'Content-Type': (b'application/x-www-form-urlencoded;'
                                   b'charset=UTF-8'),
-                b'Authorization': 'Basic {}'.format(
-                    b64encode('{}:{}'.format(
+                b'Authorization': 'Basic {0}'.format(
+                    b64encode('{0}:{1}'.format(
                         quote(self.consumer_key),
                         quote(self.consumer_secret)).encode('utf8')
                     ).decode('utf8')