From 326441e72eb9dfb621b31e3705fccd3651347e20 Mon Sep 17 00:00:00 2001 From: Vinay Sajip Date: Fri, 20 Feb 2004 13:16:36 +0000 Subject: [PATCH] Copyright year change. Corrections to comments. Added RESET_ERROR definition. --- Lib/logging/config.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Lib/logging/config.py b/Lib/logging/config.py index 933bdc7afc3..b6b7a450c0c 100644 --- a/Lib/logging/config.py +++ b/Lib/logging/config.py @@ -19,9 +19,9 @@ comp.lang.python, and influenced by Apache's log4j system. Should work under Python versions >= 1.5.2, except that source line -information is not available unless 'inspect' is. +information is not available unless 'sys._getframe()' is. -Copyright (C) 2001-2002 Vinay Sajip. All Rights Reserved. +Copyright (C) 2001-2004 Vinay Sajip. All Rights Reserved. To use, simply 'import logging' and log away! """ @@ -33,6 +33,11 @@ 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 # reconfiguration of logging.