mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 08:14:42 +04:00
Python 2.6 compatibility for LoggingHandler. Closes #66.
This commit is contained in:
parent
8b0a2abaf9
commit
7a8dcb0ca9
1 changed files with 1 additions and 1 deletions
|
|
@ -16,7 +16,7 @@ LOG_LEVEL_COLORS = {
|
|||
|
||||
class LoggingHandler(logging.Handler):
|
||||
def __init__(self, use_color):
|
||||
super(LoggingHandler, self).__init__()
|
||||
logging.Handler.__init__(self)
|
||||
self.use_color = use_color
|
||||
|
||||
def emit(self, record):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue