# HG changeset patch # User Peter Hosey # Date 1218438841 25200 # Node ID d58b4e2e12d4785a20b97f478446c6eb00fbee21 # Parent fa7cd4c2716baa7f4bac1ce6a1277074e0353411 Moved the imports of sys and fileinput, so that all the imports are together. diff --git a/diff-colorize.py b/diff-colorize.py --- 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):