From 9fc75f78d8d6d21816fd17b08d7083629d452136 Mon Sep 17 00:00:00 2001 From: Leah Date: Sat, 18 Jun 2016 11:43:18 -0700 Subject: [PATCH] Replaced hard coded color with RED constant from utils.py --- tests/lint/trailing_whitespace.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/lint/trailing_whitespace.py b/tests/lint/trailing_whitespace.py index 05d52e4c..0b954146 100644 --- a/tests/lint/trailing_whitespace.py +++ b/tests/lint/trailing_whitespace.py @@ -1,14 +1,14 @@ import itertools import re -from tests.util import colon, color, display_path, paths, Failure, Success +from tests.util import colon, color, display_path, paths, Failure, Success, RED 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):