gesomax / httplib2

Automatically exported from code.google.com/p/httplib2
0 stars 0 forks source link

httplib2 for python3 raised NameError #80

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. if remote server closed the connection when downloading, the exception 
sometimes occured

What is the expected output? What do you see instead?
no message, but I got NameError message

What version of the product are you using? On what operating system?
httplib2-python3-0.5.0 on Windows XP with Service Pack 2

Please provide any additional information below.
I checked the code file __init__.py and found out slice of code in line 
839: except (socket.error, httplib.HTTPException):
but python3 doesnot include httplib module any more, I replace httplib 
with http.client and no exception raised!

The attachment is the patch file!

Original issue reported on code.google.com by jonathan.Admin on 9 Dec 2009 at 8:12

Attachments:

GoogleCodeExporter commented 8 years ago
This bug seems easy to be fixed, why not fix it by now?

Original comment by quanxunz...@gmail.com on 4 Jul 2010 at 12:10

GoogleCodeExporter commented 8 years ago
The same error appears on line 858 in tip:
"except httplib.HTTPException:" -> "except http.client.HTTPException:"

No httplib on python3

Original comment by and...@gmail.com on 23 Nov 2010 at 7:32

GoogleCodeExporter commented 8 years ago

Original comment by joe.gregorio@gmail.com on 13 Feb 2011 at 5:03

GoogleCodeExporter commented 8 years ago
Issue 89 has been merged into this issue.

Original comment by joe.gregorio@gmail.com on 14 Feb 2011 at 4:38