Skip to content

Commit ee6b52d

Browse files
committed
Trimmed trailing white space.
1 parent a6b6b56 commit ee6b52d

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

ox3apiclient/__init__.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
if major_py_version == 2 and minor_py_version > 4:
2121
import oauth2 as oauth
2222
else:
23-
import oauth2_version as oauth
23+
import oauth2_version as oauth
2424

2525
import urllib
2626
import urllib2
@@ -68,7 +68,7 @@ def __init__(self, domain, realm, consumer_key, consumer_secret,
6868
api_path -- Only override for debugging.
6969
http_proxy -- Optional proxy to send HTTP requests through.
7070
"""
71-
71+
7272
self.domain = domain
7373
self.consumer_key = consumer_key
7474
self.consumer_secret = consumer_secret
@@ -130,7 +130,7 @@ def _sign_request(self, req):
130130
oauth.SignatureMethod_HMAC_SHA1(),
131131
self._consumer,
132132
self._token)
133-
133+
134134
req.headers.update(oauth_req.to_header())
135135
return \
136136
urllib2.Request(req.get_full_url(), headers=req.headers, data=data)
@@ -159,7 +159,7 @@ def request(self, url, method='GET', headers={}, data=None, sign=False):
159159
# Everything needs to be UTF-8 for urlencode:
160160
data_utf8 = req.get_data()
161161
for i in data_utf8:
162-
data_utf8[i] = data_utf8[i].encode('utf-8')
162+
data_utf8[i] = data_utf8[i].encode('utf-8')
163163
req.add_data(urllib.urlencode(data_utf8))
164164

165165
# In 2.4 and 2.5, urllib2 throws errors for all non 200 status codes.

0 commit comments

Comments
 (0)