commit | e2c8f2d5817fe530a873248bb5d82dcaa7d0f57e | [log] [tgz] |
---|---|---|
author | Guido van Rossum <guido@python.org> | Wed May 09 23:43:17 2007 +0000 |
committer | Guido van Rossum <guido@python.org> | Wed May 09 23:43:17 2007 +0000 |
tree | a5920e9acf33c72f42679f1d595044035ff1eeb5 | |
parent | 7fe7d1ac4da9e10af39ed0736c141c39b4cbb944 [diff] |
Fix code depending on exception unpacking.
diff --git a/Lib/test/test_support.py b/Lib/test/test_support.py index 57b1db3..7cbee0a 100644 --- a/Lib/test/test_support.py +++ b/Lib/test/test_support.py
@@ -106,7 +106,7 @@ sock.bind((host, port)) return port except socket.error as e: - (err, msg) = e + (err, msg) = e.args if err != errno.EADDRINUSE: raise print(' WARNING: failed to listen on port %d, trying another' % port, file=sys.__stderr__)