From 95db522578303da70654939091b49fd9ce993699 Mon Sep 17 00:00:00 2001 From: Marius Halden Date: Wed, 3 Jun 2015 02:11:41 +0200 Subject: =?UTF-8?q?Ooops=E2=80=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- push.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- cgit v1.2.3