]> jfr.im git - z_archive/twitter.git/commitdiff
Py3 exception fix
authorhugovk <redacted>
Tue, 15 Apr 2014 10:41:31 +0000 (13:41 +0300)
committerhugovk <redacted>
Tue, 15 Apr 2014 10:41:31 +0000 (13:41 +0300)
twitter/api.py

index 9002768e1072b60a35c06bf9cbfd229e91a4bc02..9914ce6894a4153f2646c2d3d024cc0e478f7f58 100644 (file)
@@ -207,7 +207,7 @@ class TwitterCall(object):
                 return handle
             try:
                 data = handle.read()
-            except httplib.IncompleteRead, e:
+            except httplib.IncompleteRead as e:
                 # Even if we don't get all the bytes we should have there
                 # may be a complete response in e.partial
                 data = e.partial