Skip to content

Commit 2fced2e

Browse files
Harmon758Byron
authored andcommitted
Remove unnecessary check for logging.NullHandler for Python 2.6
1 parent 52f9369 commit 2fced2e

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

git/util.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -933,8 +933,3 @@ def iter_items(cls, repo, *args, **kwargs):
933933
class NullHandler(logging.Handler):
934934
def emit(self, record):
935935
pass
936-
937-
938-
# In Python 2.6, there is no NullHandler yet. Let's monkey-patch it for a workaround.
939-
if not hasattr(logging, 'NullHandler'):
940-
logging.NullHandler = NullHandler

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy