Skip to content

Commit 0c42960

Browse files
fix: tests, change bold colors into normal
1 parent 0db081c commit 0c42960

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

Lib/_colorize.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -225,10 +225,10 @@ class Dis(ThemeSection):
225225
exception_label: str = ANSIColors.CYAN
226226
argument_detail: str = ANSIColors.CYAN
227227

228-
op_load: str = ANSIColors.BOLD_BLUE
229-
op_pop: str = ANSIColors.BOLD_MAGENTA
230-
op_call_return: str = ANSIColors.BOLD_YELLOW
231-
op_control_flow: str = ANSIColors.BOLD_GREEN
228+
op_load: str = ANSIColors.BLUE
229+
op_pop: str = ANSIColors.MAGENTA
230+
op_call_return: str = ANSIColors.YELLOW
231+
op_control_flow: str = ANSIColors.GREEN
232232

233233
reset: str = ANSIColors.RESET
234234

Lib/dis.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -866,6 +866,7 @@ def _disassemble_recursive(co, *, file=None, depth=None, show_caches=False, adap
866866
if depth is None or depth > 0:
867867
if depth is not None:
868868
depth = depth - 1
869+
theme = _get_dis_theme()
869870
for x in co.co_consts:
870871
if hasattr(x, 'co_code'):
871872
print(file=file)

0 commit comments

Comments
 (0)