From 2fced2eb501e3428b3e19e5074cf11650945a840 Mon Sep 17 00:00:00 2001 From: Harmon Date: Fri, 7 Feb 2020 06:44:19 -0600 Subject: Remove unnecessary check for logging.NullHandler for Python 2.6 --- git/util.py | 5 ----- 1 file changed, 5 deletions(-) (limited to 'git/util.py') 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 -- cgit v1.2.1