[New-bugs-announce] [issue11648] openlog()s 'logopt' keyword broken in syslog module

Tim Bielawa report at bugs.python.org
Wed Mar 23 03:42:36 CET 2011

New submission from Tim Bielawa <tbielawa at redhat.com>:

Issue 8451 unintentionally introduced a bug into the openlog() function in the syslog module.

syslog.openlog() as documented [1] is defined as: syslog.openlog([ident[, logopt[, facility]]]). I believe this is caused by the patch for issue 8451 redefining the kwargs to expect a 'logoption' keyword instead.

This patch:

 - Fixes syslog.openlog() so that it properly accepts the 'logopt' keyword argument again.

[1] http://docs.python.org/library/syslog.html#syslog.openlog

components: Library (Lib)
files: syslog-fixlogopt-keyword.patch
keywords: patch
messages: 131844
nosy: tbielawa
priority: normal
severity: normal
status: open
title: openlog()s 'logopt' keyword broken in syslog module
versions: Python 2.7
Added file: http://bugs.python.org/file21352/syslog-fixlogopt-keyword.patch

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list