From 6cad5fb7a673004d732e07a61fcb8301bde513e5 Mon Sep 17 00:00:00 2001 From: Alex Bozhenko Date: Wed, 31 Jan 2024 14:39:04 -0800 Subject: Update build_tar.py Python 3.12 started to complain about invalid escape sequences. https://docs.python.org/dev/whatsnew/3.12.html#other-language-changes One supposed to use r""" when dostrings contains backslashes """ https://stackoverflow.com/a/33734332 --- pkg/private/tar/build_tar.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/private/tar/build_tar.py b/pkg/private/tar/build_tar.py index 08a3a06..f4b9f0d 100644 --- a/pkg/private/tar/build_tar.py +++ b/pkg/private/tar/build_tar.py @@ -26,7 +26,7 @@ from pkg.private.tar import tar_writer def normpath(path): - """Normalize a path to the format we need it. + r"""Normalize a path to the format we need it. os.path.normpath changes / to \ on windows, but tarfile needs / style paths. -- cgit v1.2.3