diff -r e0a90b1c4cdf -r 73d5e6101e52 Lib/logging/config.py --- a/Lib/logging/config.py Fri Feb 07 15:04:26 2014 -0500 +++ b/Lib/logging/config.py Fri Feb 07 14:58:06 2014 -0800 @@ -41,7 +41,8 @@ if sys.platform == "win32": RESET_ERROR = 10054 #WSAECONNRESET else: - RESET_ERROR = 104 #ECONNRESET + import errno + RESET_ERROR = errno.ECONNRESET # # The following code implements a socket listener for on-the-fly