mirror of
https://github.com/usnistgov/macos_security.git
synced 2026-02-03 14:03:24 +00:00
SyntaxWarning for python string \| with sufficiently new python version #114
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @bernstei on GitHub.
Running
generate_guidance.pyunder python 3.12 leads to manySyntaxWarning, e.g.It appears that most recent python syntax interprets
'\|'as an attempt to escape the|. I think it can be replaced withr'\|'or'\\|', but a, I'm not 100% sure this is right, and b, I'm not sure what python versions this project intends to support and whether they support this new raw string syntax.@robertgendler commented on GitHub:
Merged into the OS branches.