From: Raymond Hettinger Date: Wed, 10 Sep 2003 03:31:47 +0000 (+0000) Subject: SF #792649: RESET_ERROR is not defined(logging module) X-Git-Tag: v2.3.1~60 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=24af6b5b297a3c781c18a683e9706b3d3f12bfe0;p=thirdparty%2FPython%2Fcpython.git SF #792649: RESET_ERROR is not defined(logging module) --- diff --git a/Lib/logging/config.py b/Lib/logging/config.py index 933bdc7afc3c..d4d08f012070 100644 --- a/Lib/logging/config.py +++ b/Lib/logging/config.py @@ -32,6 +32,10 @@ from SocketServer import ThreadingTCPServer, StreamRequestHandler DEFAULT_LOGGING_CONFIG_PORT = 9030 +if sys.platform == "win32": + RESET_ERROR = 10054 #WSAECONNRESET +else: + RESET_ERROR = 104 #ECONNRESET # # The following code implements a socket listener for on-the-fly diff --git a/Misc/NEWS b/Misc/NEWS index 9641cae0b52b..b6c5aee21ee4 100644 --- a/Misc/NEWS +++ b/Misc/NEWS @@ -47,6 +47,8 @@ Extension modules Library ------- +- Bug #792649: logging.ConfigStreamHandler had an uninitialized variable + - The csv module's DictReader and DictWriter classes now accept keyword arguments. This was an omission in the initial implementation.