Commit 4194b5d7 authored by Zachary Ware's avatar Zachary Ware

Issue #20376: Argument Clinic now escapes backslashes in docstrings.

parent 76c2f06c
......@@ -142,6 +142,8 @@ Tests
Tools/Demos
-----------
- Issue #20376: Argument Clinic now escapes backslashes in docstrings.
- Issue #20381: Argument Clinic now sanity checks the default argument when
c_default is also specified, providing a nice failure message for
disallowed values.
......
......@@ -120,6 +120,7 @@ def fail(*args, filename=None, line_number=None):
def quoted_for_c_string(s):
for old, new in (
('\\', '\\\\'), # must be first!
('"', '\\"'),
("'", "\\'"),
):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment