Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replaced hard coded color with RED constant from utils.py #400

Merged
merged 1 commit into from Jun 18, 2016
Merged
Changes from all commits
Commits
File filter...
Filter file types
Jump to…
Jump to file
Failed to load files.

Always

Just for now

Replaced hard coded color with RED constant from utils.py

  • Loading branch information
leahnp committed Jun 18, 2016
commit 9fc75f78d8d6d21816fd17b08d7083629d452136
@@ -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):
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.