Skip to content

Commit 21d56e2

Browse files
committed
Remove unnecessary check for logging.NullHandler for Python 2.6
1 parent 7f250ca commit 21d56e2

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)