[Python-checkins] cpython (merge 3.3 -> default): merge 3.3
benjamin.peterson
python-checkins at python.org
Mon May 13 02:02:47 CEST 2013
http://hg.python.org/cpython/rev/b0f8918399df
changeset: 83757:b0f8918399df
parent: 83755:f6223bab5657
parent: 83756:27e470952085
user: Benjamin Peterson <benjamin at python.org>
date: Sun May 12 19:02:05 2013 -0500
summary:
merge 3.3
files:
Lib/urllib/request.py | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/Lib/urllib/request.py b/Lib/urllib/request.py
--- a/Lib/urllib/request.py
+++ b/Lib/urllib/request.py
@@ -2324,7 +2324,7 @@
conn, retrlen = self.ftp.ntransfercmd(cmd)
except ftplib.error_perm as reason:
if str(reason)[:3] != '550':
- raise URLError('ftp error: %d' % reason).with_traceback(
+ raise URLError('ftp error: %r' % reason).with_traceback(
sys.exc_info()[2])
if not conn:
# Set transfer mode to ASCII!
@@ -2336,7 +2336,7 @@
try:
self.ftp.cwd(file)
except ftplib.error_perm as reason:
- raise URLError('ftp error: %d' % reason) from reason
+ raise URLError('ftp error: %r' % reason) from reason
finally:
self.ftp.cwd(pwd)
cmd = 'LIST ' + file
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list