From e2c8f2d5817fe530a873248bb5d82dcaa7d0f57e Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Wed, 9 May 2007 23:43:17 +0000 Subject: Fix code depending on exception unpacking. --- Lib/test/test_support.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 @@ def bind_port(sock, host='', preferred_port=54321): 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__) -- cgit v0.12