Skip to content

Commit 4e767b5

Browse files
committed
Use _colorize.get_colors() to allow disabling ANSI escape codes through environment variables
1 parent 027a833 commit 4e767b5

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Lib/profiling/sampling/pstats_collector.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
import collections
22
import marshal
33
import pstats
4-
lazy from _colorize import ANSIColors
4+
from _colorize import get_colors
55

66
from .collector import Collector, extract_lineno
77
from .constants import MICROSECONDS_PER_SECOND, PROFILING_MODE_CPU
88

9+
ANSIColors = get_colors()
910

1011
class PstatsCollector(Collector):
1112
aggregating = True

0 commit comments

Comments
 (0)