summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2010-10-24 14:20:22 (GMT)
committerGeorg Brandl <georg@python.org>2010-10-24 14:20:22 (GMT)
commitb75b639a8bb96b64d7966457ab6480a911ac6819 (patch)
tree08e359ecf7f04cece50fe974337e5d8881a4da14 /Lib
parent543af759616ca6f4c8a2ca74e8c65a3e92a990a7 (diff)
downloadcpython-b75b639a8bb96b64d7966457ab6480a911ac6819.zip
cpython-b75b639a8bb96b64d7966457ab6480a911ac6819.tar.gz
cpython-b75b639a8bb96b64d7966457ab6480a911ac6819.tar.bz2
Remove usage of exception indexing.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_ssl.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_ssl.py b/Lib/test/test_ssl.py
index b11723c..f740f2d 100644
--- a/Lib/test/test_ssl.py
+++ b/Lib/test/test_ssl.py
@@ -912,7 +912,7 @@ else:
sys.stdout.write("\nSSLError is %s\n" % x.args[1])
except socket.error as x:
if support.verbose:
- sys.stdout.write("\nsocket.error is %s\n" % x[1])
+ sys.stdout.write("\nsocket.error is %s\n" % x.args[1])
except IOError as x:
if x.errno != errno.ENOENT:
raise