summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVinay Sajip <vinay_sajip@yahoo.co.uk>2006-10-03 18:21:56 (GMT)
committerVinay Sajip <vinay_sajip@yahoo.co.uk>2006-10-03 18:21:56 (GMT)
commit2c050af28b6e4f718f11f2440df85daeb1bc3ece (patch)
tree5e0464e94af2ff933b5d91c857d2eb11aa5d7202
parentf4686f995e9d1ffd098f0c91863b3658550b598a (diff)
downloadcpython-2c050af28b6e4f718f11f2440df85daeb1bc3ece.zip
cpython-2c050af28b6e4f718f11f2440df85daeb1bc3ece.tar.gz
cpython-2c050af28b6e4f718f11f2440df85daeb1bc3ece.tar.bz2
Modified LogRecord.__init__ to make the func parameter optional. (See SF #1569622).
-rw-r--r--Lib/logging/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/logging/__init__.py b/Lib/logging/__init__.py
index dc3400d..71efbd6 100644
--- a/Lib/logging/__init__.py
+++ b/Lib/logging/__init__.py
@@ -214,7 +214,7 @@ class LogRecord:
information to be logged.
"""
def __init__(self, name, level, pathname, lineno,
- msg, args, exc_info, func):
+ msg, args, exc_info, func=None):
"""
Initialize a logging record with interesting information.
"""