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

Tweak RED fix to pass lints #391

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter...
Filter file types
Jump to…
Jump to file
Failed to load files.

Always

Just for now

replacing "31" with RED constant

  • Loading branch information
d-jh authored and edunham committed Jun 2, 2016
commit 5a54992a11719f77afa2a07e5bee054abe2bfa9b
@@ -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.