mirror of
https://github.com/python/cpython
synced 2026-09-29 12:10:30 +03:00
gh-107710: Speed up logging.getHandlerNames function (#107711)
This commit is contained in:
parent
c399b5e1a5
commit
8fcee6b279
2 changed files with 2 additions and 2 deletions
|
|
@ -916,8 +916,7 @@ def getHandlerNames():
|
|||
"""
|
||||
Return all known handler names as an immutable set.
|
||||
"""
|
||||
result = set(_handlers.keys())
|
||||
return frozenset(result)
|
||||
return frozenset(_handlers)
|
||||
|
||||
|
||||
class Handler(Filterer):
|
||||
|
|
|
|||
|
|
@ -0,0 +1 @@
|
|||
Speed up :func:`logging.getHandlerNames`.
|
||||
Loading…
Add table
Add a link
Reference in a new issue