Skip to content

Commit 0b22cb0

Browse files
committed
Minor PEP-8 fixes.
1 parent a8eaab9 commit 0b22cb0

2 files changed

Lines changed: 8 additions & 6 deletions

File tree

github2/client.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@ def __init__(self, username=None, api_token=None, debug=False,
4242
debug=self.debug,
4343
requests_per_second=requests_per_second,
4444
access_token=access_token, cache=cache,
45-
proxy_host=proxy_host, proxy_port=proxy_port)
45+
proxy_host=proxy_host,
46+
proxy_port=proxy_port)
4647
self.issues = Issues(self.request)
4748
self.users = Users(self.request)
4849
self.repos = Repositories(self.request)

github2/request.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
except ImportError:
88
import simplejson
99
try:
10-
import socks # SOCKS support may not be installed
10+
import socks # SOCKS support may not be installed
1111
except ImportError:
1212
socks = None
1313
from urlparse import (urlsplit, urlunsplit)
@@ -59,11 +59,12 @@ def __init__(self, username=None, api_token=None, url_prefix=None,
5959
if proxy_host is None:
6060
self._http = httplib2.Http(cache=cache)
6161
elif proxy_host and socks is None:
62-
raise GithubError('Proxy support missing. Install a python SOCKS library.')
62+
raise GithubError('Proxy support missing. '
63+
'Install a Python SOCKS library.')
6364
else:
64-
self._http = httplib2.Http(proxy_info=httplib2.ProxyInfo(socks.PROXY_TYPE_HTTP,
65-
proxy_host, proxy_port),
66-
cache=cache)
65+
proxy_info = httplib2.ProxyInfo(socks.PROXY_TYPE_HTTP,
66+
proxy_host, proxy_port),
67+
self._http = httplib2.Http(proxy_info=proxy_info, cache=cache)
6768

6869
def encode_authentication_data(self, extra_post_data):
6970
if self.access_token:

0 commit comments

Comments
 (0)