Author: Andreas Tille <tille@debian.org>
Last-Update: 2026-02-14
Bug-Debian: https://bugs.debian.org/1085744
Description: Fix Python3 SyntaxWarning

--- a/nvpy/notes_db.py
+++ b/nvpy/notes_db.py
@@ -557,7 +557,7 @@ class NotesDB(utils.SubjectMixin):
         # example result for 't:tag1 t:tag2 word1 "word2 word3" tag:tag3' ==
         # [('', 'tag1', '', ''), ('', 'tag2', '', ''), ('', '', '', 'word1'), ('', '', 'word2 word3', ''), ('ag', 'tag3', '', '')]
 
-        groups = re.findall('t(ag)?:([^\s]+)|"([^"]+)"|([^\s]+)', search_string)
+        groups = re.findall(r't(ag)?:([^\s]+)|"([^"]+)"|([^\s]+)', search_string)
         tms_pats: typing.List[typing.List[str]] = [[] for _ in range(3)]
 
         # we end up with [[tag_pats],[multi_word_pats],[single_word_pats]]
--- a/nvpy/nvpy.py
+++ b/nvpy/nvpy.py
@@ -661,7 +661,7 @@ class Controller:
             logging.debug("Trying to convert %s to html." % (key, ))
             if HAVE_MARKDOWN:
                 logging.debug("Convert note %s to html." % (key, ))
-                exts = re.split('\s+', self.config.md_extensions.strip()) if self.config.md_extensions else []
+                exts = re.split(r'\s+', self.config.md_extensions.strip()) if self.config.md_extensions else []
                 exts += list(DEFAULT_MARKDOWN_EXTS)
                 # remove duplicate items on exts.
                 exts = list(set(exts))
--- a/nvpy/utils.py
+++ b/nvpy/utils.py
@@ -12,7 +12,7 @@ import threading
 from . import tk
 
 # first line with non-whitespace should be the title
-note_title_re = re.compile('\s*(.*)\n?')
+note_title_re = re.compile(r'\s*(.*)\n?')
 
 
 def generate_random_key():
