From: Ka-Ping Yee Date: Sat, 10 Mar 2001 09:33:14 +0000 (+0000) Subject: Make docstrings raw, since they contain literal backslashes. X-Git-Tag: v2.1b2~193 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=22fcae976af53e8a3a26e8d1fb799a17992dc678;p=thirdparty%2FPython%2Fcpython.git Make docstrings raw, since they contain literal backslashes. --- diff --git a/Lib/distutils/command/build_ext.py b/Lib/distutils/command/build_ext.py index 14cfebf7200b..866697577d91 100644 --- a/Lib/distutils/command/build_ext.py +++ b/Lib/distutils/command/build_ext.py @@ -545,7 +545,7 @@ class build_ext (Command): return self.package + '.' + ext_name def get_ext_filename (self, ext_name): - """Convert the name of an extension (eg. "foo.bar") into the name + r"""Convert the name of an extension (eg. "foo.bar") into the name of the file from which it will be loaded (eg. "foo/bar.so", or "foo\bar.pyd"). """ diff --git a/Lib/pre.py b/Lib/pre.py index a3188fec9d6e..357e0a658c04 100644 --- a/Lib/pre.py +++ b/Lib/pre.py @@ -1,6 +1,6 @@ # module 're' -- A collection of regular expression operations -"""Support for regular expressions (RE). +r"""Support for regular expressions (RE). This module provides regular expression matching operations similar to those found in Perl. It's 8-bit clean: the strings being processed may