[Python-checkins] cpython (3.2): Issue 16646 (ftplib): deliberately use intermediate variable after catching
giampaolo.rodola
python-checkins at python.org
Mon Dec 17 20:47:34 CET 2012
http://hg.python.org/cpython/rev/dcefa2c8386b
changeset: 80917:dcefa2c8386b
branch: 3.2
parent: 80910:1a2ead9faa3f
user: Giampaolo Rodola' <g.rodola at gmail.com>
date: Mon Dec 17 20:46:16 2012 +0100
summary:
Issue 16646 (ftplib): deliberately use intermediate variable after catching exception
files:
Lib/ftplib.py | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/Lib/ftplib.py b/Lib/ftplib.py
--- a/Lib/ftplib.py
+++ b/Lib/ftplib.py
@@ -291,7 +291,8 @@
try:
sock = socket.socket(af, socktype, proto)
sock.bind(sa)
- except socket.error as err:
+ except socket.error as _:
+ err = _
if sock:
sock.close()
sock = None
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list