[Python-checkins] Clarifying the documentation on library/syslog (GH-92587)

rhettinger webhook-mailer at python.org
Tue Jul 26 03:06:17 EDT 2022


https://github.com/python/cpython/commit/b7ce4625fe2a8a4d6c1db6b39b52c7f97d384caa
commit: b7ce4625fe2a8a4d6c1db6b39b52c7f97d384caa
branch: main
author: Nicolas Haller <nicolas at haller.im>
committer: rhettinger <rhettinger at users.noreply.github.com>
date: 2022-07-26T02:06:06-05:00
summary:

Clarifying the documentation on library/syslog (GH-92587)

files:
M Doc/library/syslog.rst

diff --git a/Doc/library/syslog.rst b/Doc/library/syslog.rst
index d264a3340c98b..ce51856ab7be1 100644
--- a/Doc/library/syslog.rst
+++ b/Doc/library/syslog.rst
@@ -29,10 +29,15 @@ The module defines the following functions:
    value given in the :func:`openlog` call is used.
 
    If :func:`openlog` has not been called prior to the call to :func:`syslog`,
-   ``openlog()`` will be called with no arguments.
+   :func:`openlog` will be called with no arguments.
 
    .. audit-event:: syslog.syslog priority,message syslog.syslog
 
+   .. versionchanged:: 3.2
+      In previous versions, :func:`openlog` would not be called automatically if
+      it wasn't called prior to the call to :func:`syslog`, deferring to the syslog
+      implementation to call ``openlog()``.
+
 
 .. function:: openlog([ident[, logoption[, facility]]])
 
@@ -51,8 +56,7 @@ The module defines the following functions:
 
    .. versionchanged:: 3.2
       In previous versions, keyword arguments were not allowed, and *ident* was
-      required.  The default for *ident* was dependent on the system libraries,
-      and often was ``python`` instead of the name of the Python program file.
+      required.
 
 
 .. function:: closelog()



More information about the Python-checkins mailing list