Avoid potential negative array index access to cached text.
[LibreOffice.git] / external / lxml / 0001-Make-regexp-string-raw-to-correct-its-escape-sequenc.patch.1
blobce1ec383cc63278641a7aa06259998da51627da9
1 From 9686dd9c7670d18acff6360c8444520273d5f1b2 Mon Sep 17 00:00:00 2001
2 From: Jakub Wilk <jwilk@jwilk.net>
3 Date: Fri, 16 Jun 2023 09:24:21 +0200
4 Subject: [PATCH] Make regexp string raw to correct its escape sequence usage
5  (GH-371)
7 Fixes:
9     $ python3 -Wd setup.py
10     setup.py:117: DeprecationWarning: invalid escape sequence \.
11     ...
12 ---
13  setup.py | 2 +-
14  1 file changed, 1 insertion(+), 1 deletion(-)
16 diff --git a/setup.py b/setup.py
17 index 709cbc68..7a3f46e5 100644
18 --- a/setup.py
19 +++ b/setup.py
20 @@ -114,7 +114,7 @@ extra_options['packages'] = [
22  def setup_extra_options():
23      is_interesting_package = re.compile('^(libxml|libxslt|libexslt)$').match
24 -    is_interesting_header = re.compile('^(zconf|zlib|.*charset)\.h$').match
25 +    is_interesting_header = re.compile(r'^(zconf|zlib|.*charset)\.h$').match
27      def extract_files(directories, pattern='*'):
28          def get_files(root, dir_path, files):
29 -- 
30 2.39.2