[Python-checkins] r85820 - python/branches/py3k/Lib/test/test_ssl.py

georg.brandl python-checkins at python.org
Sun Oct 24 16:20:23 CEST 2010


Author: georg.brandl
Date: Sun Oct 24 16:20:22 2010
New Revision: 85820

Log:
Remove usage of exception indexing.

Modified:
   python/branches/py3k/Lib/test/test_ssl.py

Modified: python/branches/py3k/Lib/test/test_ssl.py
==============================================================================
--- python/branches/py3k/Lib/test/test_ssl.py	(original)
+++ python/branches/py3k/Lib/test/test_ssl.py	Sun Oct 24 16:20:22 2010
@@ -912,7 +912,7 @@
                     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


More information about the Python-checkins mailing list