[Python-3000-checkins] r53438 - python/branches/p3yk/Lib/ftplib.py
guido.van.rossum
python-3000-checkins at python.org
Sun Jan 14 19:43:49 CET 2007
Author: guido.van.rossum
Date: Sun Jan 14 19:43:49 2007
New Revision: 53438
Modified:
python/branches/p3yk/Lib/ftplib.py
Log:
Fix new bug in ftplib.py introduced by exception scope limitation.
Modified: python/branches/p3yk/Lib/ftplib.py
==============================================================================
--- python/branches/p3yk/Lib/ftplib.py (original)
+++ python/branches/p3yk/Lib/ftplib.py Sun Jan 14 19:43:49 2007
@@ -119,7 +119,8 @@
try:
self.sock = socket.socket(af, socktype, proto)
self.sock.connect(sa)
- except socket.error as msg:
+ except socket.error as err:
+ msg = err
if self.sock:
self.sock.close()
self.sock = None
More information about the Python-3000-checkins
mailing list