Skip to content

Commit 2d0a5d4

Browse files
committed
bpo-8840: Consistently use single-quotes around parameter name
1 parent 3c18ae1 commit 2d0a5d4

5 files changed

Lines changed: 9 additions & 9 deletions

File tree

Modules/_io/bytesio.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -552,7 +552,7 @@ _io.BytesIO.truncate
552552
size: Py_ssize_t(accept={int, NoneType}, c_default="self->pos") = None
553553
/
554554
555-
Resize stream to at most size bytes.
555+
Resize stream to at most 'size' bytes.
556556
557557
Position in the stream is left unchanged. Size defaults to
558558
the current IO position as reported by tell(). If the stream's
@@ -562,7 +562,7 @@ undetermined. Returns the new size.
562562

563563
static PyObject *
564564
_io_BytesIO_truncate_impl(bytesio *self, Py_ssize_t size)
565-
/*[clinic end generated code: output=9ad17650c15fa09b input=5f56a5c3b3d91e9d]*/
565+
/*[clinic end generated code: output=9ad17650c15fa09b input=0f69785dcc22737e]*/
566566
{
567567
CHECK_CLOSED(self);
568568
CHECK_EXPORTS(self);

Modules/_io/clinic/bytesio.c.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ PyDoc_STRVAR(_io_BytesIO_truncate__doc__,
314314
"truncate($self, size=None, /)\n"
315315
"--\n"
316316
"\n"
317-
"Resize stream to at most size bytes.\n"
317+
"Resize stream to at most \'size\' bytes.\n"
318318
"\n"
319319
"Position in the stream is left unchanged. Size defaults to\n"
320320
"the current IO position as reported by tell(). If the stream\'s\n"
@@ -446,4 +446,4 @@ _io_BytesIO___init__(PyObject *self, PyObject *args, PyObject *kwargs)
446446
exit:
447447
return return_value;
448448
}
449-
/*[clinic end generated code: output=605eed15d8c98b4a input=a9049054013a1b77]*/
449+
/*[clinic end generated code: output=934f685bde756d6d input=a9049054013a1b77]*/

Modules/_io/clinic/fileio.c.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ PyDoc_STRVAR(_io_FileIO_truncate__doc__,
322322
"truncate($self, size=None, /)\n"
323323
"--\n"
324324
"\n"
325-
"Resize stream to at most size bytes.\n"
325+
"Resize stream to at most \'size\' bytes.\n"
326326
"\n"
327327
"Position in the stream is left unchanged. Size defaults to\n"
328328
"the current IO position as reported by tell(). If the stream\'s\n"
@@ -375,4 +375,4 @@ _io_FileIO_isatty(fileio *self, PyObject *Py_UNUSED(ignored))
375375
#ifndef _IO_FILEIO_TRUNCATE_METHODDEF
376376
#define _IO_FILEIO_TRUNCATE_METHODDEF
377377
#endif /* !defined(_IO_FILEIO_TRUNCATE_METHODDEF) */
378-
/*[clinic end generated code: output=c0e670a6d39d67fb input=a9049054013a1b77]*/
378+
/*[clinic end generated code: output=b0ef426afce9a6c3 input=a9049054013a1b77]*/

Modules/_io/fileio.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -979,7 +979,7 @@ _io.FileIO.truncate
979979
size as posobj: object = NULL
980980
/
981981
982-
Resize stream to at most size bytes.
982+
Resize stream to at most 'size' bytes.
983983
984984
Position in the stream is left unchanged. Size defaults to
985985
the current IO position as reported by tell(). If the stream's
@@ -989,7 +989,7 @@ undetermined. Returns the new size.
989989

990990
static PyObject *
991991
_io_FileIO_truncate_impl(fileio *self, PyObject *posobj)
992-
/*[clinic end generated code: output=e49ca7a916c176fa input=1957520f803e9c07]*/
992+
/*[clinic end generated code: output=e49ca7a916c176fa input=b60ed73a8ce11d96]*/
993993
{
994994
Py_off_t pos;
995995
int ret;

Modules/_io/iobase.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ _io__IOBase_tell_impl(PyObject *self)
118118
}
119119

120120
PyDoc_STRVAR(iobase_truncate_doc,
121-
"Resize stream to at most size bytes.\n"
121+
"Resize stream to at most 'size' bytes.\n"
122122
"\n"
123123
"Position in the stream is left unchanged. Size defaults to\n"
124124
"the current IO position as reported by tell(). If the stream's\n"

0 commit comments

Comments
 (0)