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

ambv webhook-mailer at python.org
Fri Aug 5 04:18:53 EDT 2022


https://github.com/python/cpython/commit/6a36b8e58697a980f2d77f67ca00b06c82c3d6a8
commit: 6a36b8e58697a980f2d77f67ca00b06c82c3d6a8
branch: 3.11
author: Shantanu <12621235+hauntsaninja at users.noreply.github.com>
committer: ambv <lukasz at langa.pl>
date: 2022-08-05T10:18:44+02:00
summary:

[3.11] Clarifying the documentation on library/syslog (GH-92587) (GH-95492)

(cherry picked from commit b7ce4625fe2a8a4d6c1db6b39b52c7f97d384caa)

Co-authored-by: Nicolas Haller <nicolas at haller.im>

files:
M Doc/library/syslog.rst

diff --git a/Doc/library/syslog.rst b/Doc/library/syslog.rst
index 16093d5aac7..766ff57cc66 100644
--- a/Doc/library/syslog.rst
+++ b/Doc/library/syslog.rst
@@ -31,10 +31,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]]])
 
@@ -53,8 +58,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