mirror of
https://github.com/python/cpython
synced 2024-09-05 16:38:56 +00:00
gh-107710: Speed up logging.getHandlerNames
function (#107711)
This commit is contained in:
parent
c399b5e1a5
commit
8fcee6b279
|
@ -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…
Reference in a new issue