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

2012-01-04 Thread Sandro Tosi

Sandro Tosi sandro.t...@gmail.com added the comment:

This has already been fixed with 71f7175e2b34  friends.

--
nosy: +sandro.tosi
resolution:  - fixed
stage:  - committed/rejected
status: open - closed
versions:  -Python 3.4

___
Python tracker rep...@bugs.python.org
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-23 Thread Georg Brandl

Georg Brandl ge...@python.org added the comment:

Now that keyword support was introduced, I'd rather fix the documentation to 
use the new name.

--
assignee:  - docs@python
components: +Documentation -Library (Lib)
nosy: +docs@python, georg.brandl

___
Python tracker rep...@bugs.python.org
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-23 Thread Eric Smith

Eric Smith e...@trueblade.com added the comment:

I agree with Georg, unfortunately.

And I say unfortunately because neither logopt nor logoption is a good 
name. The log part adds nothing. The man page for syslog calls this option, 
which would be my preferred name. But changing it now would be a hassle.

Also, we clearly need a test for this, since apparently none failed when it was 
changed to the longer name.

--

___
Python tracker rep...@bugs.python.org
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

New submission from Tim Bielawa tbiel...@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 rep...@bugs.python.org
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 Éric Araujo

Changes by Éric Araujo mer...@netwok.org:


--
nosy: +eric.smith, jafo, pitrou, r.david.murray

___
Python tracker rep...@bugs.python.org
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 tbiel...@redhat.com 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 rep...@bugs.python.org
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 tbiel...@redhat.com added the comment:

Classification update.

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

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