Patchwork D116: run-tests: drop unnecessary check for pygmentspresent

login
register
mail settings
Submitter phabricator
Date July 18, 2017, 4:13 p.m.
Message ID <b00c66d12bdcfced5631991021d2eb5f@localhost.localdomain>
Download mbox | patch
Permalink /patch/22494/
State Not Applicable, archived
Headers show

Comments

phabricator - July 18, 2017, 4:13 p.m.
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




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

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

Patch

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(),