]> granicus.if.org Git - python/commitdiff
Remove usage of exception indexing.
authorGeorg Brandl <georg@python.org>
Sun, 24 Oct 2010 14:20:22 +0000 (14:20 +0000)
committerGeorg Brandl <georg@python.org>
Sun, 24 Oct 2010 14:20:22 +0000 (14:20 +0000)
Lib/test/test_ssl.py

index b11723c5381d6e94ac66730394539b2efe78c366..f740f2d5dd9e4c7970eaac6fa68531c44dbf9e1b 100644 (file)
@@ -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