From 0e812aa265796f5c2ac111a23c9ea64190e2613c Mon Sep 17 00:00:00 2001 From: Vikas Phulriya <88418134+vikasphulariya@users.noreply.github.com> Date: Sun, 24 Nov 2024 10:00:16 +0530 Subject: [PATCH] Update postinst Update line no 131,132,133 In Python, regular expressions often include escape sequences (like \w, \d, etc.), which can be misinterpreted unless explicitly told to treat the string as raw. this was causing the following error howdy.postinst:SyntaxWarning: invalid escape sequence '\w' "davisking-dlib-\w+/(dlib/(http_client|java|matlab|test/)|" --- howdy/debian/postinst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/howdy/debian/postinst b/howdy/debian/postinst index 692c66fe..49ec2480 100755 --- a/howdy/debian/postinst +++ b/howdy/debian/postinst @@ -128,9 +128,9 @@ handleStatus(sc(cmd)) DLIB_DIR = None # A regex of all files to ignore while unpacking the archive excludes = re.compile( - "davisking-dlib-\w+/(dlib/(http_client|java|matlab|test/)|" - "(docs|examples|python_examples)|" - "tools/(archive|convert_dlib_nets_to_caffe|htmlify|imglab|python/test|visual_studio_natvis))" + r"davisking-dlib-\w+/(dlib/(http_client|java|matlab|test/)|" + r"(docs|examples|python_examples)|" + r"tools/(archive|convert_dlib_nets_to_caffe|htmlify|imglab|python/test|visual_studio_natvis))" ) # Open the archive