From b06b13e61e8db81afdd666ac68f4a489cec87d5a Mon Sep 17 00:00:00 2001 From: Sebastian Thiel Date: Thu, 8 Dec 2016 12:54:34 +0100 Subject: chore(lint): flake8 Interestingly only shows in particular python versions on travis. Maybe some caching effect? Locally it is reproducible easily, with the latest flake8 --- git/util.py | 1 + 1 file changed, 1 insertion(+) (limited to 'git/util.py') diff --git a/git/util.py b/git/util.py index 1e0d3eb4..ef7e2b7c 100644 --- a/git/util.py +++ b/git/util.py @@ -940,6 +940,7 @@ 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