mirror of https://github.com/bazelbuild/rules_pkg
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:
parent
39ab08d680
commit
6cad5fb7a6
|
@ -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.
|
||||
|
||||
|
|
Loading…
Reference in New Issue