Use raw string for docstring that contains a backslash#815
Use raw string for docstring that contains a backslash#815cgrindel merged 1 commit intobazelbuild:mainfrom
Conversation
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
|
Thanks, Chuck. |
|
@alexbozhenko Unfortunately, I do not have the ability to cut a release. I pinged some folks at Google to try and cut a patch release. |
|
I'll include this in the 0.10.1 release. |
|
Very interestingly, even though this is still in rules_pkg 1.1.0, it doesn't work when including rules_pkg as a Bazel dependency with http_archive: The file that bazel unpacks doesn't contain the raw string, but a normal comment string: If I take the latest rules_pkg source code, and include it with |
Hmmm, after a |
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