diff options
author | Zachary Ware <zachary.ware@gmail.com> | 2014-01-25 09:26:20 (GMT) |
---|---|---|
committer | Zachary Ware <zachary.ware@gmail.com> | 2014-01-25 09:26:20 (GMT) |
commit | 9d7849f454dbda30b55de3922093b567ad662714 (patch) | |
tree | 5be4a0509b1a91a8355a6f67cb5d030ada1bc31c /Tools/clinic | |
parent | 3ffd913d66eebe467c9d99141909393799fcf70b (diff) | |
download | cpython-9d7849f454dbda30b55de3922093b567ad662714.zip cpython-9d7849f454dbda30b55de3922093b567ad662714.tar.gz cpython-9d7849f454dbda30b55de3922093b567ad662714.tar.bz2 |
Issue #20376: Argument Clinic now escapes backslashes in docstrings.
Diffstat (limited to 'Tools/clinic')
-rwxr-xr-x | Tools/clinic/clinic.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Tools/clinic/clinic.py b/Tools/clinic/clinic.py index d33abae..7f1b059 100755 --- a/Tools/clinic/clinic.py +++ b/Tools/clinic/clinic.py @@ -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! ('"', '\\"'), ("'", "\\'"), ): |