Message60751
| Author |
nswinton |
| Recipients |
| Date |
2005年10月18日.15:00:51 |
| SpamBayes Score |
| Marked as misclassified |
| Message-id |
| In-reply-to |
| Content |
Logged In: YES
user_id=1363935
It's not the prettiest thing, but you can work around this
by setting the socket's recv method to None before closing it.
import urllib2
f = urllib2.urlopen('http://www.google.com')
text=f.read()
f.fp._sock.recv=None # hacky avoidance
f.close()
|
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2008年01月20日 09:57:52 | admin | link | issue1208304 messages |
| 2008年01月20日 09:57:52 | admin | create |
|