]> jfr.im git - z_archive/twitter.git/commitdiff
Fixes #91 and fixed the docstring of the new rate_limit_limit property
authorIrfan Ahmad <redacted>
Sat, 13 Oct 2012 05:56:35 +0000 (10:56 +0500)
committerIrfan Ahmad <redacted>
Sat, 13 Oct 2012 05:56:35 +0000 (10:56 +0500)
twitter/api.py

index 8c4379d11560a2a40b3a13f93d2a1dc46d5cb04e..5ff37aa38f23df566bc8edbd6e9aa586ad1e3ea0 100644 (file)
@@ -79,7 +79,7 @@ class TwitterResponse(object):
     @property
     def rate_limit_limit(self):
         """
-        Remaining requests in the current rate-limit.
+        The rate limit ceiling for that given request.
         """
         return int(self.headers.get('X-Rate-Limit-Limit', "0"))
 
@@ -186,6 +186,7 @@ class TwitterCall(object):
                 body = None
             else:
                 body = arg_data.encode('utf8')
+
         req = urllib_request.Request(uriBase, body, headers)
         return self._handle_response(req, uri, arg_data)