@@ -436,7 +436,7 @@ def __str__(self):
436436 formatter .print_instruction (self , False )
437437 return output .getvalue ()
438438
439- def get_dis_theme ():
439+ def _get_dis_theme ():
440440 from _colorize import get_theme
441441 return get_theme ().dis
442442
@@ -483,7 +483,7 @@ def print_instruction(self, instr, mark_as_current=False):
483483
484484 def print_instruction_line (self , instr , mark_as_current ):
485485 """Format instruction details for inclusion in disassembly output."""
486- theme = get_dis_theme ()
486+ theme = _get_dis_theme ()
487487 lineno_width = self .lineno_width
488488 offset_width = self .offset_width
489489 label_width = self .label_width
@@ -546,7 +546,7 @@ def print_instruction_line(self, instr, mark_as_current):
546546
547547 def print_exception_table (self , exception_entries ):
548548 file = self .file
549- theme = get_dis_theme ()
549+ theme = _get_dis_theme ()
550550 if exception_entries :
551551 print ("ExceptionTable:" , file = file )
552552 for entry in exception_entries :
@@ -843,7 +843,7 @@ def disassemble(co, lasti=-1, *, file=None, show_caches=False, adaptive=False,
843843
844844def _disassemble_recursive (co , * , file = None , depth = None , show_caches = False , adaptive = False , show_offsets = False , show_positions = False ):
845845 disassemble (co , file = file , show_caches = show_caches , adaptive = adaptive , show_offsets = show_offsets , show_positions = show_positions )
846- theme = get_dis_theme ()
846+ theme = _get_dis_theme ()
847847 if depth is None or depth > 0 :
848848 if depth is not None :
849849 depth = depth - 1
0 commit comments