]> jfr.im git - z_archive/twitter.git/commitdiff
Oh my God Python. We need to talk. Another stab at inheriting from int sanely.
authorMike Verdone <redacted>
Thu, 24 Feb 2011 23:17:33 +0000 (00:17 +0100)
committerMike Verdone <redacted>
Thu, 24 Feb 2011 23:17:33 +0000 (00:17 +0100)
twitter/api.py

index 19a561570463f0545674a01dff3b37c999dff866..6271821d4a6e5ae194dc392f7cc1d616e71c068a 100644 (file)
@@ -77,7 +77,8 @@ def wrap_response(response, headers):
         __doc__ = TwitterResponse.__doc__
 
         def __init__(self, response):
-            response_typ.__init__(self, response)
+            if response_typ is not int:
+                response_typ.__init__(self, response)
             TwitterResponse.__init__(self, headers)
 
     return WrappedTwitterResponse(response)