Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aa0ccea commit d1a9a23Copy full SHA for d1a9a23
git/util.py
@@ -13,6 +13,7 @@
13
import platform
14
import getpass
15
import threading
16
+import logging
17
18
# NOTE: Some of the unused imports might be used/imported by others.
19
# Handle once test-cases are back up and running.
@@ -753,3 +754,12 @@ def wait(self):
753
754
while self.count > 0:
755
self.cv.wait()
756
self.cv.release()
757
+
758
759
+class NullHandler(logging.Handler):
760
+ def emit(self, record):
761
+ pass
762
763
+# In Python 2.6, there is no NullHandler yet. Let's monkey-patch it for a workaround.
764
+if not hasattr(logging, 'NullHandler'):
765
+ logging.NullHandler = NullHandler
0 commit comments