Message5437
urllib.urlretrieve cannot close connection automatically.
also, urllib.urlopen cannot close.
e.g.
if I want to download a file from a ftp server, write one line like this,
import urllib
urllib.urlretrieve('ftp://user:pass@hostname/fdir', 'localname')
after the file is download, the connection cannot close automatically, but Python2.5 can.
also, the following code can not close the connection as well.
import urllib
f = urllib(''ftp://user:pass@hostname/fdir')
print f.read()
f.close()
would it be possible to make Jython close the connection like Python?
thanks |
|
Date |
User |
Action |
Args |
2010-01-14 07:23:43 | julyzergcn | set | recipients:
+ julyzergcn |
2010-01-14 07:23:43 | julyzergcn | set | messageid: <1263453823.35.0.0970809377185.issue1542@psf.upfronthosting.co.za> |
2010-01-14 07:23:43 | julyzergcn | link | issue1542 messages |
2010-01-14 07:23:42 | julyzergcn | create | |
|