mirror of
https://github.com/python/cpython
synced 2026-09-29 12:10:30 +03: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
|
|
@ -412,12 +412,12 @@ _curses_panel.panel.set_userptr
|
|||
obj: object
|
||||
/
|
||||
|
||||
Set the panel’s user pointer to obj.
|
||||
Set the panel's user pointer to obj.
|
||||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
_curses_panel_panel_set_userptr(PyCursesPanelObject *self, PyObject *obj)
|
||||
/*[clinic end generated code: output=6fb145b3af88cf4a input=2056be1cd148b05c]*/
|
||||
/*[clinic end generated code: output=6fb145b3af88cf4a input=d2c6a9dbefabbf39]*/
|
||||
{
|
||||
PyObject *oldobj;
|
||||
int rc;
|
||||
|
|
@ -587,12 +587,12 @@ _curses_panel.update_panels
|
|||
|
||||
Updates the virtual screen after changes in the panel stack.
|
||||
|
||||
This does not call curses.doupdate(), so you’ll have to do this yourself.
|
||||
This does not call curses.doupdate(), so you'll have to do this yourself.
|
||||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
_curses_panel_update_panels_impl(PyObject *module)
|
||||
/*[clinic end generated code: output=2f3b4c2e03d90ded input=a127069202b0a097]*/
|
||||
/*[clinic end generated code: output=2f3b4c2e03d90ded input=5299624c9a708621]*/
|
||||
{
|
||||
PyCursesInitialised;
|
||||
update_panels();
|
||||
|
|
|
|||
6
Modules/clinic/_curses_panel.c.h
generated
6
Modules/clinic/_curses_panel.c.h
generated
|
|
@ -228,7 +228,7 @@ PyDoc_STRVAR(_curses_panel_panel_set_userptr__doc__,
|
|||
"set_userptr($self, obj, /)\n"
|
||||
"--\n"
|
||||
"\n"
|
||||
"Set the panel’s user pointer to obj.");
|
||||
"Set the panel\'s user pointer to obj.");
|
||||
|
||||
#define _CURSES_PANEL_PANEL_SET_USERPTR_METHODDEF \
|
||||
{"set_userptr", (PyCFunction)_curses_panel_panel_set_userptr, METH_O, _curses_panel_panel_set_userptr__doc__},
|
||||
|
|
@ -322,7 +322,7 @@ PyDoc_STRVAR(_curses_panel_update_panels__doc__,
|
|||
"\n"
|
||||
"Updates the virtual screen after changes in the panel stack.\n"
|
||||
"\n"
|
||||
"This does not call curses.doupdate(), so you’ll have to do this yourself.");
|
||||
"This does not call curses.doupdate(), so you\'ll have to do this yourself.");
|
||||
|
||||
#define _CURSES_PANEL_UPDATE_PANELS_METHODDEF \
|
||||
{"update_panels", (PyCFunction)_curses_panel_update_panels, METH_NOARGS, _curses_panel_update_panels__doc__},
|
||||
|
|
@ -335,4 +335,4 @@ _curses_panel_update_panels(PyObject *module, PyObject *Py_UNUSED(ignored))
|
|||
{
|
||||
return _curses_panel_update_panels_impl(module);
|
||||
}
|
||||
/*[clinic end generated code: output=ac1f56e6c3d4cc57 input=a9049054013a1b77]*/
|
||||
/*[clinic end generated code: output=3cc16062281b7e07 input=a9049054013a1b77]*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue