summaryrefslogtreecommitdiff
path: root/git/util.py
diff options
context:
space:
mode:
authorHarmon <Harmon758@gmail.com>2020-02-07 06:44:19 -0600
committerSebastian Thiel <sebastian.thiel@icloud.com>2020-02-08 10:55:50 +0800
commit2fced2eb501e3428b3e19e5074cf11650945a840 (patch)
treecd1250450988e9b8440907fc5adcb585f06cad4f /git/util.py
parent52f9369ec96dbd7db1ca903be98aeb5da73a6087 (diff)
downloadgitpython-2fced2eb501e3428b3e19e5074cf11650945a840.tar.gz
Remove unnecessary check for logging.NullHandler for Python 2.6
Diffstat (limited to 'git/util.py')
-rw-r--r--git/util.py5
1 files changed, 0 insertions, 5 deletions
diff --git a/git/util.py b/git/util.py
index 06d77d71..cf0ba8d5 100644
--- a/git/util.py
+++ b/git/util.py
@@ -933,8 +933,3 @@ class Iterable(object):
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