From f44afa823035e4b2e134d4a4965c3f21b4893607 Mon Sep 17 00:00:00 2001 From: d-jh Date: Sun, 22 May 2016 19:50:43 +0000 Subject: [PATCH 1/2] replacing "31" with RED constant --- tests/lint/trailing_whitespace.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/lint/trailing_whitespace.py b/tests/lint/trailing_whitespace.py index 05d52e4c..14fd2826 100644 --- a/tests/lint/trailing_whitespace.py +++ b/tests/lint/trailing_whitespace.py @@ -8,7 +8,7 @@ def display_trailing_whitespace(whitespace): # Show trailing whitespace with printing characters and in red # To make it easy to see what needs to be removed replaced = whitespace.replace(' ', '-').replace('\t', r'\t') - return color(31, replaced) + return color(RED, replaced) def display_failure(failure): From ebca1fe73b43aebb91019b5f6e6de0a50750f7d4 Mon Sep 17 00:00:00 2001 From: d-jh Date: Sun, 22 May 2016 20:35:42 +0000 Subject: [PATCH 2/2] Update trailing_whitespace.py --- tests/lint/trailing_whitespace.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/lint/trailing_whitespace.py b/tests/lint/trailing_whitespace.py index 14fd2826..f7d49e3c 100644 --- a/tests/lint/trailing_whitespace.py +++ b/tests/lint/trailing_whitespace.py @@ -1,7 +1,7 @@ import itertools import re -from tests.util import colon, color, display_path, paths, Failure, Success +from tests.util import * def display_trailing_whitespace(whitespace):