From 24af6b5b297a3c781c18a683e9706b3d3f12bfe0 Mon Sep 17 00:00:00 2001 From: Raymond Hettinger Date: Wed, 10 Sep 2003 03:31:47 +0000 Subject: [PATCH] SF #792649: RESET_ERROR is not defined(logging module) --- Lib/logging/config.py | 4 ++++ Misc/NEWS | 2 ++ 2 files changed, 6 insertions(+) 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. -- 2.47.3