D116: run-tests: drop unnecessary check for pygmentspresent

martinvonz (Martin von Zweigbergk) phabricator at mercurial-scm.org
Tue Jul 18 12:13:23 EDT 2017


martinvonz updated this revision to Diff 253.
martinvonz edited the summary of this revision.
martinvonz retitled this revision from "run-tests: check pygmentspresent in parseargs()" to "run-tests: drop unnecessary check for pygmentspresent".

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D116?vs=227&id=253

REVISION DETAIL
  https://phab.mercurial-scm.org/D116

AFFECTED FILES
  tests/run-tests.py

CHANGE DETAILS

diff --git a/tests/run-tests.py b/tests/run-tests.py
--- a/tests/run-tests.py
+++ b/tests/run-tests.py
@@ -1650,7 +1650,7 @@
                 else:
                     self.stream.write('\n')
                     for line in lines:
-                        if self._options.color and pygmentspresent:
+                        if self._options.color:
                             line = pygments.highlight(
                                     line,
                                     lexers.DiffLexer(),



EMAIL PREFERENCES
  https://phab.mercurial-scm.org/settings/panel/emailpreferences/

To: martinvonz, #hg-reviewers
Cc: mercurial-devel


More information about the Mercurial-devel mailing list