Skip to content

Commit a5838b5

Browse files
committed
Defer logging.handlers with a plain lazy import in config.py
Drops the "as logging_handlers" alias and the nine renames that came with it. The dotted spelling defers the submodule just as well for import time, and resolving the module's own logging global is what binds handlers in vars(logging) again, so the documented handlers.X spelling in fileConfig() config files works in a fresh process.
1 parent f68adec commit a5838b5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎Lib/logging/config.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,13 @@
2828
import functools
2929
import io
3030
import logging
31-
import logging.handlers
3231
import os
3332
import re
3433
import threading
3534
import traceback
3635
lazy import configparser
3736
lazy import json
37+
lazy import logging.handlers
3838
lazy import queue
3939
lazy import select
4040
lazy import socket

0 commit comments

Comments
 (0)