changeset 25660 | 328739ea70c3 |
parent 18519 | ca430fb6a668 |
child 27302 | faca4adfed0a |
--- a/tests/tinyproxy.py Tue Jun 23 22:38:21 2015 -0700 +++ b/tests/tinyproxy.py Tue Jun 23 22:20:08 2015 -0700 @@ -45,7 +45,7 @@ host_port = netloc, 80 print "\t" "connect to %s:%d" % host_port try: soc.connect(host_port) - except socket.error, arg: + except socket.error as arg: try: msg = arg[1] except (IndexError, TypeError): msg = arg self.send_error(404, msg)