Mercurial > diff-colorize
diff diff-colorize.py @ 6:d58b4e2e12d4
Moved the imports of sys and fileinput, so that all the imports are together.
author | Peter Hosey |
---|---|
date | Mon, 11 Aug 2008 00:14:01 -0700 |
parents | fa7cd4c2716b |
children | c6337f653d9b |
line wrap: on
line diff
--- a/diff-colorize.py +++ b/diff-colorize.py @@ -1,6 +1,8 @@ #!/usr/bin/env python +import sys import os +import fileinput INDEX_COLOR = int(os.environ.get('DIFF_INDEX_COLOR', 32)) OLD_MODE_COLOR = int(os.environ.get('DIFF_OLD_MODE_COLOR', 124)) @@ -80,9 +82,6 @@ prefixes['@@'] = ( + '@@' ) -import sys -import fileinput - for line in fileinput.input(): for prefix_to_test in prefixes: if line.startswith(prefix_to_test):