Skip to content

Commit 96c5d8c

Browse files
committed
Merge pull request #150 from Chartres/master
Fixed typos in Google for Work signing
2 parents b0c9169 + 027c54b commit 96c5d8c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

geocoder/google.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def __init__(self, location, **kwargs):
5151
self.params = sorted([(k.encode('utf8'), v.encode('utf8')) for (k, v) in self.params.items() if v])
5252
# the signature parameter needs to come in the end of the url
5353
if self.client_secret:
54-
self.params.append(self.sign_url(self.url, self.params, self.client_secret))
54+
self.params.append(self._sign_url(self.url, self.params, self.client_secret))
5555

5656
self._initialize(**kwargs)
5757

@@ -81,7 +81,7 @@ def _sign_url(self, base_url=None, params=None, client_secret=None):
8181
import urlparse
8282

8383
# Return if any parameters aren't given
84-
if not base_url or not client_secret or not params['client']:
84+
if not base_url or not client_secret or not dict(params)['client']:
8585
return None
8686

8787
# assuming parameters will be submitted to Requests in identical order!

0 commit comments

Comments
 (0)