summaryrefslogtreecommitdiffstats
path: root/Tools/clinic
diff options
context:
space:
mode:
authorZachary Ware <zachary.ware@gmail.com>2014-01-25 09:26:20 (GMT)
committerZachary Ware <zachary.ware@gmail.com>2014-01-25 09:26:20 (GMT)
commit9d7849f454dbda30b55de3922093b567ad662714 (patch)
tree5be4a0509b1a91a8355a6f67cb5d030ada1bc31c /Tools/clinic
parent3ffd913d66eebe467c9d99141909393799fcf70b (diff)
downloadcpython-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-xTools/clinic/clinic.py1
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!
('"', '\\"'),
("'", "\\'"),
):