get-my-ip.py: Python 2.x sockets can't be used in 'with' statements
authorW. Trevor King <wking@tremily.us>
Tue, 19 Feb 2013 02:56:16 +0000 (21:56 -0500)
committerW. Trevor King <wking@tremily.us>
Mon, 21 Oct 2013 03:49:00 +0000 (20:49 -0700)
commit3a052331669a621a80f30c304766f0bcb44f2f56
tree1ba3247863205635b3534592f5dd9607e4111069
parent90f57d538da945cdf3a64c54c79a57d0068579e3
get-my-ip.py: Python 2.x sockets can't be used in 'with' statements

They don't have __exit__.  Use an explicit try/except block to be
compatible with both 2.x and 3.x.
setup/get-my-ip.py