[Python-checkins] cpython (2.7): correct syslog.openlog() argument name to logoption; thanks to Arnaud

sandro.tosi python-checkins at python.org
Sat Dec 24 15:01:25 CET 2011


http://hg.python.org/cpython/rev/71f7175e2b34
changeset: 74152:71f7175e2b34
branch: 2.7
parent: 74143:94494a779c20
user: Sandro Tosi <sandro.tosi at gmail.com>
date: Sat Dec 24 14:51:26 2011 +0100
summary:
 correct syslog.openlog() argument name to logoption; thanks to Arnaud Gomes-do-Vale from docs@
files:
 Doc/library/syslog.rst | 6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/Doc/library/syslog.rst b/Doc/library/syslog.rst
--- a/Doc/library/syslog.rst
+++ b/Doc/library/syslog.rst
@@ -30,7 +30,7 @@
 ``openlog()`` will be called with no arguments.
 
 
-.. function:: openlog([ident[, logopt[, facility]]])
+.. function:: openlog([ident[, logoption[, facility]]])
 
 Logging options of subsequent :func:`syslog` calls can be set by calling
 :func:`openlog`. :func:`syslog` will call :func:`openlog` with no arguments
@@ -38,7 +38,7 @@
 
 The optional *ident* keyword argument is a string which is prepended to every
 message, and defaults to ``sys.argv[0]`` with leading path components
- stripped. The optional *logopt* keyword argument (default is 0) is a bit
+ stripped. The optional *logoption* keyword argument (default is 0) is a bit
 field -- see below for possible values to combine. The optional *facility*
 keyword argument (default is :const:`LOG_USER`) sets the default facility for
 messages which do not have a facility explicitly encoded.
@@ -98,5 +98,5 @@
 logged messages, and write the messages to the destination facility used for
 mail logging::
 
- syslog.openlog(logopt=syslog.LOG_PID, facility=syslog.LOG_MAIL)
+ syslog.openlog(logoption=syslog.LOG_PID, facility=syslog.LOG_MAIL)
 syslog.syslog('E-mail processing initiated...')
-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /