aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarius Halden <marius.h@lden.org>2015-06-03 02:11:41 +0200
committerMarius Halden <marius.h@lden.org>2015-06-03 02:11:41 +0200
commit95db522578303da70654939091b49fd9ce993699 (patch)
treec05e58dee0acf77e16711f27293eaf55deb4b6a7
parent9340e0e0cf534aa2c57d1f0f82dbf24e04b89862 (diff)
downloadpush-client-95db522578303da70654939091b49fd9ce993699.tar.gz
push-client-95db522578303da70654939091b49fd9ce993699.tar.bz2
push-client-95db522578303da70654939091b49fd9ce993699.tar.xz
Ooops…
-rwxr-xr-xpush.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/push.py b/push.py
index a67d034..5775b05 100755
--- a/push.py
+++ b/push.py
@@ -224,7 +224,7 @@ class PushClient:
def login(self, username, password):
params = urllib.parse.urlencode({'email': username, 'password': password})
- conn.request('POST', '/1/users/login.json', params, self.headers)
+ self.conn.request('POST', '/1/users/login.json', params, self.headers)
resp = self.conn.getresponse()
if resp.status != http.client.OK:
raise HTTPError(resp.status)