mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Merge Jerry James's python-regex-raw into stable.
This commit is contained in:
commit
c07e0890f2
@ -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],
|
||||
|
@ -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
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user