-
-
Notifications
You must be signed in to change notification settings - Fork 122
Closed
Description
This line raises the following warning for python3.12:
pypandoc/pandoc_download.py:61: SyntaxWarning: invalid escape sequence '\.'
The line in question:
pypandoc/pypandoc/pandoc_download.py
Line 61 in 23f6f09
| regex = re.compile(r"/jgm/pandoc/releases/download/.*(?:"+processor_architecture+"|x86|mac).*\\.(?:msi|deb|pkg)") |
This could be solved by turning the second string into a raw string:
regex = re.compile(r"/jgm/pandoc/releases/download/.*(?:"+processor_architecture+r"|x86|mac).*\.(?:msi|deb|pkg)") or just using using a raw f-string:
regex = re.compile(fr"/jgm/pandoc/releases/download/.*(?:{processor_architecture}|x86|mac).*\.(?:msi|deb|pkg)") lesinigo
Metadata
Metadata
Assignees
Labels
No labels