[issue11648] openlog()s 'logopt' keyword broken in syslog module

2011-03-22 Thread Tim Bielawa

New submission from Tim Bielawa :

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 
<http://bugs.python.org/issue11648>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11648] openlog()s 'logopt' keyword broken in syslog module

2011-03-22 Thread Tim Bielawa

Tim Bielawa  added the comment:

Trivial though it may be, the attached script demonstrates how to reproduce the 
bug described.

--
Added file: http://bugs.python.org/file21353/syslogtest-pid.py

___
Python tracker 
<http://bugs.python.org/issue11648>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11648] openlog()s 'logopt' keyword broken in syslog module

2011-03-22 Thread Tim Bielawa

Tim Bielawa  added the comment:

Classification update.

--
versions: +Python 3.2, Python 3.3, Python 3.4

___
Python tracker 
<http://bugs.python.org/issue11648>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com