Homec4science

Don't invoke pygmentize to highlight "txt" or "text" files

Authored by epriestley <git@epriestley.com> on Mar 24 2015, 21:09.

Description

Don't invoke pygmentize to highlight "txt" or "text" files

Summary: Ref T5644. Caught one more of these: we run pygmentize even when we know the file won't be highlighted.

Test Plan: Checked that we don't try to shell out to highlight text files.

Reviewers: btrahan

Reviewed By: btrahan

Subscribers: epriestley

Maniphest Tasks: T5644

Differential Revision: https://secure.phabricator.com/D12147

Details

Committed
epriestley <git@epriestley.com>Mar 24 2015, 21:09
Pushed
aubortMar 17 2017, 12:03
Parents
rPHUce3959b4046f: Allow callers to explicitly request a progress bar redraw
Branches
Unknown
Tags
Unknown

Event Timeline

epriestley <git@epriestley.com> committed rPHU4c496670539c: Don't invoke pygmentize to highlight "txt" or "text" files (authored by epriestley <git@epriestley.com>).Mar 24 2015, 21:09