Skip to content

Commit 1539854

Browse files
authored
fix formatting of literal in docstring of int.from_bytes and int.to_bytes (#117847)
1 parent 468b9ae commit 1539854

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

Objects/clinic/longobject.c.h

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Objects/longobject.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6291,7 +6291,7 @@ int.to_bytes
62916291
the most significant byte is at the beginning of the byte array. If
62926292
byteorder is 'little', the most significant byte is at the end of the
62936293
byte array. To request the native byte order of the host system, use
6294-
`sys.byteorder' as the byte order value. Default is to use 'big'.
6294+
sys.byteorder as the byte order value. Default is to use 'big'.
62956295
*
62966296
signed as is_signed: bool = False
62976297
Determines whether two's complement is used to represent the integer.
@@ -6304,7 +6304,7 @@ Return an array of bytes representing an integer.
63046304
static PyObject *
63056305
int_to_bytes_impl(PyObject *self, Py_ssize_t length, PyObject *byteorder,
63066306
int is_signed)
6307-
/*[clinic end generated code: output=89c801df114050a3 input=d42ecfb545039d71]*/
6307+
/*[clinic end generated code: output=89c801df114050a3 input=a0103d0e9ad85c2b]*/
63086308
{
63096309
int little_endian;
63106310
PyObject *bytes;
@@ -6355,7 +6355,7 @@ int.from_bytes
63556355
the most significant byte is at the beginning of the byte array. If
63566356
byteorder is 'little', the most significant byte is at the end of the
63576357
byte array. To request the native byte order of the host system, use
6358-
`sys.byteorder' as the byte order value. Default is to use 'big'.
6358+
sys.byteorder as the byte order value. Default is to use 'big'.
63596359
*
63606360
signed as is_signed: bool = False
63616361
Indicates whether two's complement is used to represent the integer.
@@ -6366,7 +6366,7 @@ Return the integer represented by the given array of bytes.
63666366
static PyObject *
63676367
int_from_bytes_impl(PyTypeObject *type, PyObject *bytes_obj,
63686368
PyObject *byteorder, int is_signed)
6369-
/*[clinic end generated code: output=efc5d68e31f9314f input=33326dccdd655553]*/
6369+
/*[clinic end generated code: output=efc5d68e31f9314f input=2ff527997fe7b0c5]*/
63706370
{
63716371
int little_endian;
63726372
PyObject *long_obj, *bytes;

0 commit comments

Comments
 (0)