Use raw string for docstring that contains a backslash (#815)

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:
Chuck Grindel 2024-02-01 07:04:28 -07:00 committed by GitHub
commit 1cbb70dfa2
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.