summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony Sottile <asottile@umich.edu>2019-02-12 23:15:54 -0500
committerBenjamin Peterson <benjamin@python.org>2019-02-12 20:19:14 -0800
commit471f02fe070c490913685939fad41c93b70b4f85 (patch)
tree8c2d997da527315816888800a37e7b30b7430a83
parent009220eae2e6b456707c1c89ef3f344b682e89d5 (diff)
downloadcpython-git-backport-73d6002-3.7.tar.gz
[3.7] Remove stray quote in os.replace docstring. (GH-11556).backport-73d6002-3.7
(cherry picked from commit 73d600239b0aa34198bce2b7982e4ff14c92f119) Co-authored-by: Anthony Sottile <asottile@umich.edu>
-rw-r--r--Modules/clinic/posixmodule.c.h4
-rw-r--r--Modules/posixmodule.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/Modules/clinic/posixmodule.c.h b/Modules/clinic/posixmodule.c.h
index a722e93be2..caa1cacd3f 100644
--- a/Modules/clinic/posixmodule.c.h
+++ b/Modules/clinic/posixmodule.c.h
@@ -1264,7 +1264,7 @@ PyDoc_STRVAR(os_replace__doc__,
" descriptor open to a directory, and the respective path string (src or dst)\n"
" should be relative; the path will then be relative to that directory.\n"
"src_dir_fd and dst_dir_fd, may not be implemented on your platform.\n"
-" If they are unavailable, using them will raise a NotImplementedError.\"");
+" If they are unavailable, using them will raise a NotImplementedError.");
#define OS_REPLACE_METHODDEF \
{"replace", (PyCFunction)os_replace, METH_FASTCALL|METH_KEYWORDS, os_replace__doc__},
@@ -6538,4 +6538,4 @@ exit:
#ifndef OS_GETRANDOM_METHODDEF
#define OS_GETRANDOM_METHODDEF
#endif /* !defined(OS_GETRANDOM_METHODDEF) */
-/*[clinic end generated code: output=df73bd7805978a25 input=a9049054013a1b77]*/
+/*[clinic end generated code: output=32c935671ee020d5 input=a9049054013a1b77]*/
diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c
index f76bd57fe4..e587ed23c2 100644
--- a/Modules/posixmodule.c
+++ b/Modules/posixmodule.c
@@ -4122,13 +4122,13 @@ If either src_dir_fd or dst_dir_fd is not None, it should be a file
descriptor open to a directory, and the respective path string (src or dst)
should be relative; the path will then be relative to that directory.
src_dir_fd and dst_dir_fd, may not be implemented on your platform.
- If they are unavailable, using them will raise a NotImplementedError."
+ If they are unavailable, using them will raise a NotImplementedError.
[clinic start generated code]*/
static PyObject *
os_replace_impl(PyObject *module, path_t *src, path_t *dst, int src_dir_fd,
int dst_dir_fd)
-/*[clinic end generated code: output=1968c02e7857422b input=25515dfb107c8421]*/
+/*[clinic end generated code: output=1968c02e7857422b input=c003f0def43378ef]*/
{
return internal_rename(src, dst, src_dir_fd, dst_dir_fd, 1);
}