Merge Jerry James's python-regex-raw into stable.

This commit is contained in:
John Ralls 2023-11-25 16:35:57 -08:00
commit c07e0890f2
2 changed files with 2 additions and 2 deletions

View File

@ -164,7 +164,7 @@ class Console (Gtk.ScrolledWindow):
weight=Pango.Weight.BOLD,
font='Mono 10')
self.buffer.create_tag('0')
self.color_pat = re.compile('\x01?\x1b\[(.*?)m\x02?')
self.color_pat = re.compile(r'\x01?\x1b\[(.*?)m\x02?')
for code in ansi_colors:
self.buffer.create_tag(code,
foreground=ansi_colors[code],

View File

@ -47,7 +47,7 @@ class Shell:
self.command = ''
self.globals = ns_globals
self.locals = ns_locals
self.complete_sep = re.compile('[\s\{\}\[\]\(\)]')
self.complete_sep = re.compile(r'[\s\{\}\[\]\(\)]')
self.prompt = sys.ps1