From 87fa92f047cbbf1cc361ccd848a2dbc114227774 Mon Sep 17 00:00:00 2001 From: David Medina Date: Sat, 29 Oct 2011 02:44:47 +0200 Subject: Fix typo in rate_limit --- github3/api.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'github3/api.py') diff --git a/github3/api.py b/github3/api.py index d11aef6..81ae3e7 100644 --- a/github3/api.py +++ b/github3/api.py @@ -66,8 +66,8 @@ class GithubCore(object): def _requests_post_hook(self, r): """Post-processing for HTTP response objects.""" - self._ratelimit = int(r.headers.get('x-ratelimit-limit', -1)) - self._ratelimit_remaining = int(r.headers.get('x-ratelimit-remaining', -1)) + self._rate_limit = int(r.headers.get('x-ratelimit-limit', -1)) + self._rate_limit_remaining = int(r.headers.get('x-ratelimit-remaining', -1)) return r -- cgit v1.2.3-59-g8ed1b