]> jfr.im git - z_archive/twitter.git/blobdiff - twitter/api.py
Version bump 1.5. YEEAH.
[z_archive/twitter.git] / twitter / api.py
index 694d2c4d679ad7e4724ba4f0aaf3f504488243b7..6271821d4a6e5ae194dc392f7cc1d616e71c068a 100644 (file)
@@ -72,14 +72,16 @@ def wrap_response(response, headers):
     if response_typ is bool:
         # HURF DURF MY NAME IS PYTHON AND I CAN'T SUBCLASS bool.
         response_typ = int
-    class WrappedTwitterResponse(TwitterResponse, response_typ):
+
+    class WrappedTwitterResponse(response_typ, TwitterResponse):
         __doc__ = TwitterResponse.__doc__
 
-        def __init__(self, response, headers):
-            response_typ.__init__(self, response)
+        def __init__(self, response):
+            if response_typ is not int:
+                response_typ.__init__(self, response)
             TwitterResponse.__init__(self, headers)
 
-    return WrappedTwitterResponse(response, headers)
+    return WrappedTwitterResponse(response)