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

-5
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)