Skip to content

Commit

Permalink
Fix setup.
Browse files Browse the repository at this point in the history
  • Loading branch information
tylerbutler committed Dec 31, 2014
1 parent 859bb2b commit 01d7b51
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
1 change: 1 addition & 0 deletions MANIFEST.in
@@ -0,0 +1 @@
include *.txt *.py *.md *.markdown
4 changes: 4 additions & 0 deletions README.md
@@ -1 +1,5 @@
# Crayola

A simple color-coding logging handler for Python's logging module.

Works on Windows, OS X, and Linux.
3 changes: 1 addition & 2 deletions crayola/crayola.py
Expand Up @@ -52,13 +52,12 @@ def colorize(self, levelno, message=None):
return ''.join(str_list) + message + Style.RESET_ALL

def format(self, record):
reset = Style.RESET_ALL
message = logging.StreamHandler.format(self, record)
parts = message.split('\n')
joiner = '' if len(parts) == 1 else '\n'

if not self.multiline_color:
parts[0] += reset
parts[0] += Style.RESET_ALL

message = joiner.join(parts)
return self.colorize(record.levelno, message)
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Expand Up @@ -11,7 +11,7 @@
from setuptools import setup, find_packages

PROJECT = 'crayola'
version = '0.1.0'
version = '0.1.1'

################################################################################
# find_package_data written by Ian Bicking.
Expand Down

0 comments on commit 01d7b51

Please sign in to comment.