diff options
author | Vinay Sajip <vinay_sajip@yahoo.co.uk> | 2017-02-20 17:41:03 +0000 |
---|---|---|
committer | Vinay Sajip <vinay_sajip@yahoo.co.uk> | 2017-02-20 17:41:03 +0000 |
commit | aacf9ed52e654eb68717d1a1a971956829751a59 (patch) | |
tree | 5f73358b73d8df1bdbb791c00e00c09ee471170e /logutils/colorize.py | |
parent | 469b1d89217b4b1307c71c92f88688cb2f2600aa (diff) | |
download | logutils-aacf9ed52e654eb68717d1a1a971956829751a59.tar.gz |
Changes for 0.3.4.
Diffstat (limited to 'logutils/colorize.py')
-rw-r--r-- | logutils/colorize.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/logutils/colorize.py b/logutils/colorize.py index 2c39639..f95c036 100644 --- a/logutils/colorize.py +++ b/logutils/colorize.py @@ -1,5 +1,5 @@ # -# Copyright (C) 2010-2013 Vinay Sajip. All rights reserved. +# Copyright (C) 2010-2017 Vinay Sajip. All rights reserved. # import ctypes import logging @@ -18,7 +18,7 @@ class ColorizingStreamHandler(logging.StreamHandler): :param strm: The stream to colorize - typically ``sys.stdout`` or ``sys.stderr``. """ - + # color names to indices color_map = { 'black': 0, @@ -191,4 +191,3 @@ class ColorizingStreamHandler(logging.StreamHandler): parts[0] = self.colorize(parts[0], record) message = '\n'.join(parts) return message - |