[Python-checkins] r45819 - python/trunk/Lib/urllib.py (original) (raw)
georg.brandl python-checkins at python.org
Sun Apr 30 11:23:59 CEST 2006
- Previous message: [Python-checkins] r45818 - peps/trunk/pep-0356.txt
- Next message: [Python-checkins] buildbot warnings in x86 gentoo trunk
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Author: georg.brandl Date: Sun Apr 30 11:23:59 2006 New Revision: 45819
Modified: python/trunk/Lib/urllib.py Log: Patch #1470976: don't NLST files when retrieving over FTP.
Modified: python/trunk/Lib/urllib.py
--- python/trunk/Lib/urllib.py (original) +++ python/trunk/Lib/urllib.py Sun Apr 30 11:23:59 2006 @@ -856,13 +856,6 @@ self.ftp.voidcmd(cmd) conn = None if file and not isdir:
# Use nlst to see if the file exists at all
try:
self.ftp.nlst(file)
except ftplib.error_perm, reason:
raise IOError, ('ftp error', reason), sys.exc_info()[2]
# Restore the transfer mode!
self.ftp.voidcmd(cmd) # Try to retrieve as a file try: cmd = 'RETR ' + file
- Previous message: [Python-checkins] r45818 - peps/trunk/pep-0356.txt
- Next message: [Python-checkins] buildbot warnings in x86 gentoo trunk
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]