Mercurial > diff-colorize
changeset 3:10948e4fd070
Move the color constants above the format strings, since the color constants are more editable.
author | Peter Hosey |
---|---|
date | Sun, 10 Aug 2008 23:29:49 -0700 |
parents | 9eda9139d627 |
children | b8b2d1931a9e |
files | diff-colorize.py |
diffstat | 1 files changed, 5 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/diff-colorize.py +++ b/diff-colorize.py @@ -1,15 +1,15 @@ #!/usr/bin/env python -RESET_FORMAT = '\033[0m' -COLOR_FORMAT = '\033[38;5;%um' -BEGIN_REVERSE_FORMAT = '\033[7m' -END_REVERSE_FORMAT = '\033[27m' - INDEX_COLOR = 32 REMOVED_COLOR = 203 ADDED_COLOR = 2 HUNK_START_COLOR = 32 +RESET_FORMAT = '\033[0m' +COLOR_FORMAT = '\033[38;5;%um' +BEGIN_REVERSE_FORMAT = '\033[7m' +END_REVERSE_FORMAT = '\033[27m' + class OrderedDict(dict): def __init__(self, input=None): if input is None: