https://github.com/python/cpython/commit/fdf830d91c2a08dc7ec4019da02d2ced1941798d
commit: fdf830d91c2a08dc7ec4019da02d2ced1941798d
branch: 3.13
author: Miss Islington (bot) <[email protected]>
committer: vsajip <[email protected]>
date: 2026-08-12T21:10:06+01:00
summary:

[3.13] Update logging.config.listen() docstrings to mention dictConfig() 
(GH-155479) (GH-155528)

(cherry picked from commit 791b5731d0c999d671e5a74a4c6557ddfa2a72a7)

files:
M Lib/logging/config.py

diff --git a/Lib/logging/config.py b/Lib/logging/config.py
index f7d277ba4a3993f..bd467e49b5c27fd 100644
--- a/Lib/logging/config.py
+++ b/Lib/logging/config.py
@@ -941,8 +941,9 @@ def listen(port=DEFAULT_LOGGING_CONFIG_PORT, verify=None):
     Start up a socket server on the specified port, and listen for new
     configurations.
 
-    These will be sent as a file suitable for processing by fileConfig().
-    Returns a Thread object on which you can call start() to start the server,
+    These will be sent as a file suitable for processing by dictConfig() or
+    fileConfig(). Returns a Thread object on which you can call start() to
+    start the server,
     and which you can join() when appropriate. To stop the server, call
     stopListening().
 
@@ -960,8 +961,8 @@ class ConfigStreamHandler(StreamRequestHandler):
         """
         Handler for a logging configuration request.
 
-        It expects a completely new logging configuration and uses fileConfig
-        to install it.
+        It expects a completely new logging configuration and uses dictConfig
+        or fileConfig to install it.
         """
         def handle(self):
             """
@@ -969,7 +970,7 @@ def handle(self):
 
             Each request is expected to be a 4-byte length, packed using
             struct.pack(">L", n), followed by the config file.
-            Uses fileConfig() to do the grunt work.
+            Uses dictConfig() or fileConfig() to do the grunt work.
             """
             try:
                 conn = self.connection

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]

Reply via email to