Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upImport color constant for red instead of using magic number #378
Comments
|
There is an open PR for this. |
|
Previous attempt at #381. |
bors-servo
added a commit
that referenced
this issue
Jun 18, 2016
Replaced hard coded color with RED constant from utils.py This is to fix: #378 #381 had been closed due to inactivity so I picked this task to start contributing to servo. Hopefully this resolves the outstanding comments from 381. <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/saltfs/400) <!-- Reviewable:end -->
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Our test output is colorized for readability, and it uses ANSI escape codes to do so. The
tests/util.pyfile has constants for the colors that we use. Thetests/lint/trailing_whitespace.pytest should import the RED constant from thetests/util.pyfile instead of hard-coding 31.