summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorVinay Sajip <vinay_sajip@yahoo.co.uk>2004-02-20 13:16:36 (GMT)
committerVinay Sajip <vinay_sajip@yahoo.co.uk>2004-02-20 13:16:36 (GMT)
commit326441e72eb9dfb621b31e3705fccd3651347e20 (patch)
tree0741f6f1419ed85d9f9bc1f3b83469fbb0a1c30c /Lib
parent781380c1f8f78e269bd06f28700e17bebd0a5143 (diff)
downloadcpython-326441e72eb9dfb621b31e3705fccd3651347e20.zip
cpython-326441e72eb9dfb621b31e3705fccd3651347e20.tar.gz
cpython-326441e72eb9dfb621b31e3705fccd3651347e20.tar.bz2
Copyright year change.
Corrections to comments. Added RESET_ERROR definition.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/logging/config.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/Lib/logging/config.py b/Lib/logging/config.py
index 933bdc7..b6b7a45 100644
--- a/Lib/logging/config.py
+++ b/Lib/logging/config.py
@@ -19,9 +19,9 @@ Logging package for Python. Based on PEP 282 and comments thereto in
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 @@ 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
# reconfiguration of logging.