Skip to content

Commit

Permalink
Merge pull request burnash#103 from neilobremski/master
Browse files Browse the repository at this point in the history
Use http_session parameter in Client ctor
  • Loading branch information
burnash committed Jan 30, 2014
2 parents f7e851d + f3d5e7b commit dcbaf4b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions gspread/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,7 @@ class Client(object):
"""
def __init__(self, auth, http_session=None):
self.auth = auth

if not http_session:
self.session = HTTPSession()
self.session = http_session or HTTPSession()

def _get_auth_token(self, content):
for line in content.splitlines():
Expand Down

0 comments on commit dcbaf4b

Please sign in to comment.