mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
bpo-36101: remove non-ascii characters in docstring (GH-12018)
* remove non-ascii characters in docstring * clinic.py emits a warning when docstring has non-ascii character
This commit is contained in:
parent
9e456bc70e
commit
463572c8be
5 changed files with 14 additions and 11 deletions
4
Python/clinic/context.c.h
generated
4
Python/clinic/context.c.h
generated
|
@ -82,7 +82,7 @@ PyDoc_STRVAR(_contextvars_Context_values__doc__,
|
|||
"values($self, /)\n"
|
||||
"--\n"
|
||||
"\n"
|
||||
"Return a list of all variables’ values in the context object.");
|
||||
"Return a list of all variables\' values in the context object.");
|
||||
|
||||
#define _CONTEXTVARS_CONTEXT_VALUES_METHODDEF \
|
||||
{"values", (PyCFunction)_contextvars_Context_values, METH_NOARGS, _contextvars_Context_values__doc__},
|
||||
|
@ -177,4 +177,4 @@ PyDoc_STRVAR(_contextvars_ContextVar_reset__doc__,
|
|||
|
||||
#define _CONTEXTVARS_CONTEXTVAR_RESET_METHODDEF \
|
||||
{"reset", (PyCFunction)_contextvars_ContextVar_reset, METH_O, _contextvars_ContextVar_reset__doc__},
|
||||
/*[clinic end generated code: output=67c3a8f76b6cf4e7 input=a9049054013a1b77]*/
|
||||
/*[clinic end generated code: output=a86b66e1516c25d4 input=a9049054013a1b77]*/
|
||||
|
|
|
@ -592,12 +592,12 @@ _contextvars_Context_keys_impl(PyContext *self)
|
|||
/*[clinic input]
|
||||
_contextvars.Context.values
|
||||
|
||||
Return a list of all variables’ values in the context object.
|
||||
Return a list of all variables' values in the context object.
|
||||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
_contextvars_Context_values_impl(PyContext *self)
|
||||
/*[clinic end generated code: output=d286dabfc8db6dde input=6c3d08639ba3bf67]*/
|
||||
/*[clinic end generated code: output=d286dabfc8db6dde input=ce8075d04a6ea526]*/
|
||||
{
|
||||
return _PyHamt_NewIterValues(self->ctx_vars);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue