From 63c9fdff66f653fe04546bb645416185545d9a90 Mon Sep 17 00:00:00 2001 From: a Date: Fri, 30 Oct 2020 14:19:31 +0300 Subject: [PATCH] pygments print to debug --- xonsh/pygments_cache.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/xonsh/pygments_cache.py b/xonsh/pygments_cache.py index 8fcbaed5b..144ff2500 100644 --- a/xonsh/pygments_cache.py +++ b/xonsh/pygments_cache.py @@ -298,9 +298,11 @@ def load_or_build(): else: import sys - print("pygments cache not found, building...", file=sys.stderr) + if DEBUG: + print("pygments cache not found, building...", file=sys.stderr) CACHE = build_cache() - print("...writing cache to " + fname, file=sys.stderr) + if DEBUG: + print("...writing cache to " + fname, file=sys.stderr) write_cache(fname)