File: Invalid-escape-sequence.patch

package info (click to toggle)
python-babelfont 3.0.6~ds-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 5,740 kB
  • sloc: xml: 33,013; python: 5,762; makefile: 68
file content (19 lines) | stat: -rw-r--r-- 801 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Origin: commit: 44211bea960cedf928e69cd48a52719463cd8999
From: Max <aragon999@users.noreply.github.com>
Date: Wed, 27 Nov 2024 13:17:50 +0100
Subject: fix: Invalid escape sequence in regex string (#75)
Bug: https://github.com/simoncozens/babelfont/pull/75
---
diff --git a/src/babelfont/convertors/fontlab/vfb.py b/src/babelfont/convertors/fontlab/vfb.py
index 75bfbf4..52ad622 100644
--- a/src/babelfont/convertors/fontlab/vfb.py
+++ b/src/babelfont/convertors/fontlab/vfb.py
@@ -97,7 +97,7 @@ def _load(self):
             if data is None:
                 continue
 
-            if name in ignore or re.match("^\d+$", name):
+            if name in ignore or re.match(r"^\d+$", name):
                 continue
             if name in store_in_scratch:
                 scratch[name].append(data)