mirror of https://github.com/python/cpython
Remove usage of exception indexing.
This commit is contained in:
parent
543af75961
commit
b75b639a8b
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue