Skip to content

Commit

Permalink
Remove unnecessary check for logging.NullHandler for Python 2.6
Browse files Browse the repository at this point in the history
  • Loading branch information
Harmon758 authored and Byron committed Feb 8, 2020
1 parent 52f9369 commit 2fced2e
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions git/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -933,8 +933,3 @@ def iter_items(cls, repo, *args, **kwargs):
class NullHandler(logging.Handler):
def emit(self, record):
pass


# In Python 2.6, there is no NullHandler yet. Let's monkey-patch it for a workaround.
if not hasattr(logging, 'NullHandler'):
logging.NullHandler = NullHandler

0 comments on commit 2fced2e

Please sign in to comment.