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
This commit is contained in:
Alex Bozhenko 2024-01-31 14:39:04 -08:00 committed by GitHub
parent 39ab08d680
commit 6cad5fb7a6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -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.