mirror of
https://github.com/python/cpython.git
synced 2025-08-30 13:38:43 +00:00
gh-133490: Fix syntax highlighting for remote PDB (#133494)
This commit is contained in:
parent
120c9d42f2
commit
fd37f1a8ad
3 changed files with 158 additions and 7 deletions
|
@ -1069,7 +1069,7 @@ class Pdb(bdb.Bdb, cmd.Cmd):
|
|||
def _colorize_code(self, code):
|
||||
if self.colorize:
|
||||
colors = list(_pyrepl.utils.gen_colors(code))
|
||||
chars, _ = _pyrepl.utils.disp_str(code, colors=colors)
|
||||
chars, _ = _pyrepl.utils.disp_str(code, colors=colors, force_color=True)
|
||||
code = "".join(chars)
|
||||
return code
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue