]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
SF #792649: RESET_ERROR is not defined(logging module)
authorRaymond Hettinger <python@rcn.com>
Wed, 10 Sep 2003 03:31:47 +0000 (03:31 +0000)
committerRaymond Hettinger <python@rcn.com>
Wed, 10 Sep 2003 03:31:47 +0000 (03:31 +0000)
Lib/logging/config.py
Misc/NEWS

index 933bdc7afc3c02d1f04338676616533b8721511e..d4d08f0120706d35578b38b5723105cf107f55f7 100644 (file)
@@ -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
index 9641cae0b52be8e94adb5066ae412161dfd91a1e..b6c5aee21ee4021ccc2c070fe3a20f47da76bed4 100644 (file)
--- 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.