gnucash stable: Multiple changes pushed

John Ralls jralls at code.gnucash.org
Sat Nov 25 19:45:06 EST 2023


Updated	 via  https://github.com/Gnucash/gnucash/commit/c07e0890 (commit)
	 via  https://github.com/Gnucash/gnucash/commit/a967e05c (commit)
	from  https://github.com/Gnucash/gnucash/commit/1d8c525a (commit)



commit c07e0890f20800a505d1bffe9bd373a6714fdc0b
Merge: 1d8c525afc a967e05cce
Author: John Ralls <jralls at ceridwen.us>
Date:   Sat Nov 25 16:35:57 2023 -0800

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


commit a967e05cce8ec07d43866b84d20a74bb458f649a
Author: Jerry James <loganjerry at gmail.com>
Date:   Sat Nov 18 21:52:14 2023 -0700

    Mark 2 regular expressions as raw strings

diff --git a/gnucash/python/pycons/console.py b/gnucash/python/pycons/console.py
index b3a27035fe..31c79ab888 100644
--- a/gnucash/python/pycons/console.py
+++ b/gnucash/python/pycons/console.py
@@ -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],
diff --git a/gnucash/python/pycons/shell.py b/gnucash/python/pycons/shell.py
index d5e3f8e13e..2bfac3de25 100644
--- a/gnucash/python/pycons/shell.py
+++ b/gnucash/python/pycons/shell.py
@@ -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
 
 



Summary of changes:
 gnucash/python/pycons/console.py | 2 +-
 gnucash/python/pycons/shell.py   | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)



More information about the gnucash-changes mailing list