[3.11] Fix typos in bltinmodule.c. (GH-97789)

(cherry picked from commit 873a2f2527)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
This commit is contained in:
Benjamin Peterson 2022-10-03 13:10:14 -07:00 committed by GitHub
parent 096e39637b
commit 4d4b1e6c0b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 12 deletions

View file

@ -15,8 +15,8 @@ PyDoc_STRVAR(builtin___import____doc__,
"\n"
"The globals argument is only used to determine the context;\n"
"they are not modified. The locals argument is unused. The fromlist\n"
"should be a list of names to emulate ``from name import ...\'\', or an\n"
"empty list to emulate ``import name\'\'.\n"
"should be a list of names to emulate ``from name import ...``, or an\n"
"empty list to emulate ``import name``.\n"
"When importing a module from a package, note that __import__(\'A.B\', ...)\n"
"returns package A when fromlist is empty, but its submodule B when\n"
"fromlist is not empty. The level argument is used to determine whether to\n"
@ -539,7 +539,7 @@ PyDoc_STRVAR(builtin_setattr__doc__,
"\n"
"Sets the named attribute on the given object to the specified value.\n"
"\n"
"setattr(x, \'y\', v) is equivalent to ``x.y = v\'\'");
"setattr(x, \'y\', v) is equivalent to ``x.y = v``");
#define BUILTIN_SETATTR_METHODDEF \
{"setattr", _PyCFunction_CAST(builtin_setattr), METH_FASTCALL, builtin_setattr__doc__},
@ -574,7 +574,7 @@ PyDoc_STRVAR(builtin_delattr__doc__,
"\n"
"Deletes the named attribute from the given object.\n"
"\n"
"delattr(x, \'y\') is equivalent to ``del x.y\'\'");
"delattr(x, \'y\') is equivalent to ``del x.y``");
#define BUILTIN_DELATTR_METHODDEF \
{"delattr", _PyCFunction_CAST(builtin_delattr), METH_FASTCALL, builtin_delattr__doc__},
@ -1045,4 +1045,4 @@ builtin_issubclass(PyObject *module, PyObject *const *args, Py_ssize_t nargs)
exit:
return return_value;
}
/*[clinic end generated code: output=a2c5c53e8aead7c3 input=a9049054013a1b77]*/
/*[clinic end generated code: output=cc844ea007c1241f input=a9049054013a1b77]*/