Description: fix regexp SyntaxWarning with recent Python versions
 Even during package installation the following lines were noted:
   /usr/lib/python3/dist-packages/revelation/datahandler/pwsafe.py:338:
   SyntaxWarning: invalid escape sequence '\s'
   /usr/lib/python3/dist-packages/revelation/datahandler/rvl.py:147:
   SyntaxWarning: invalid escape sequence '\s'
 Double escape the regexp patterns.
Author: Laszlo Boszormenyi (GCS) <gcs@debian.org>
Bug-Debian: https://bugs.debian.org/1087048
Forwarded: no
Last-Update: 2025-10-25

---

--- revelation-0.5.5.orig/src/lib/datahandler/pwsafe.py
+++ revelation-0.5.5/src/lib/datahandler/pwsafe.py
@@ -335,7 +335,7 @@ def normalize_field(field):
     enc = locale.getpreferredencoding()
 
     field = field.replace(b"\x00", b"")
-    field = re.sub(b"\s+", b" ", field)
+    field = re.sub(b"\\s+", b" ", field)
     field = field.strip()
     field = field.decode(enc, "replace")
 
--- revelation-0.5.5.orig/src/lib/datahandler/rvl.py
+++ revelation-0.5.5/src/lib/datahandler/rvl.py
@@ -145,14 +145,14 @@ class RevelationXML(base.DataHandler):
             input = input.encode()
 
         match = re.match(b"""
-            \s*                 # whitespace at beginning
-            <\?xml(?:.*)\?>     # xml header
-            \s*                 # whitespace after xml header
-            <revelationdata     # open revelationdata tag
-            [^>]+               # any non-closing character
-            dataversion="(\d+)" # dataversion
-            [^>]*               # any non-closing character
-            >                   # close revelationdata tag
+            \\s*                 # whitespace at beginning
+            <\\?xml(?:.*)\\?>    # xml header
+            \\s*                 # whitespace after xml header
+            <revelationdata      # open revelationdata tag
+            [^>]+                # any non-closing character
+            dataversion="(\\d+)" # dataversion
+            [^>]*                # any non-closing character
+            >                    # close revelationdata tag
         """, input, re.VERBOSE)
 
         if match is None:
