Skip to content

Commit 4c35964

Browse files
committed
Corrections for a/an in code comments and documentation
1 parent f056416 commit 4c35964

File tree

9 files changed

+14
-14
lines changed

9 files changed

+14
-14
lines changed

Doc/library/codecs.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -977,7 +977,7 @@ particular, the following variants typically exist:
977977

978978
* an ISO 8859 codeset
979979

980-
* a Microsoft Windows code page, which is typically derived from a 8859 codeset,
980+
* a Microsoft Windows code page, which is typically derived from an 8859 codeset,
981981
but replaces control characters with additional graphic characters
982982

983983
* an IBM EBCDIC code page

Include/pythonrun.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ PyAPI_DATA(PyThreadState*) _PyOS_ReadlineTState;
176176

177177
/* Stack size, in "pointers" (so we get extra safety margins
178178
on 64-bit platforms). On a 32-bit platform, this translates
179-
to a 8k margin. */
179+
to an 8k margin. */
180180
#define PYOS_STACK_MARGIN 2048
181181

182182
#if defined(WIN32) && !defined(MS_WIN64) && defined(_MSC_VER) && _MSC_VER >= 1300

Lib/pickletools.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -590,7 +590,7 @@ def read_bytes8(f):
590590
reader=read_bytes8,
591591
doc="""A counted bytes string.
592592
593-
The first argument is a 8-byte little-endian unsigned int giving
593+
The first argument is an 8-byte little-endian unsigned int giving
594594
the number of bytes, and the second argument is that many bytes.
595595
""")
596596

@@ -734,7 +734,7 @@ def read_unicodestring8(f):
734734
reader=read_unicodestring8,
735735
doc="""A counted Unicode string.
736736
737-
The first argument is a 8-byte little-endian signed int
737+
The first argument is an 8-byte little-endian signed int
738738
giving the number of bytes in the string, and the second
739739
argument-- the UTF-8 encoding of the Unicode string --
740740
contains that many bytes.
@@ -1330,7 +1330,7 @@ def __init__(self, name, code, arg,
13301330
proto=4,
13311331
doc="""Push a Python bytes object.
13321332
1333-
There are two arguments: the first is a 8-byte unsigned int giving
1333+
There are two arguments: the first is an 8-byte unsigned int giving
13341334
the number of bytes in the string, and the second is that many bytes,
13351335
which are taken literally as the string content.
13361336
"""),
@@ -1417,7 +1417,7 @@ def __init__(self, name, code, arg,
14171417
proto=4,
14181418
doc="""Push a Python Unicode string object.
14191419
1420-
There are two arguments: the first is a 8-byte little-endian signed int
1420+
There are two arguments: the first is an 8-byte little-endian signed int
14211421
giving the number of bytes in the string. The second is that many
14221422
bytes, and is the UTF-8 encoding of the Unicode string.
14231423
"""),

Lib/tkinter/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1257,7 +1257,7 @@ def getint_event(s):
12571257
# time field: "valid for events that contain a time field"
12581258
# width field: Configure, ConfigureRequest, Create, ResizeRequest,
12591259
# and Expose events only
1260-
# x field: "valid for events that contain a x field"
1260+
# x field: "valid for events that contain an x field"
12611261
# y field: "valid for events that contain a y field"
12621262
# keysym as decimal: KeyPress and KeyRelease events only
12631263
# x_root, y_root fields: ButtonPress, ButtonRelease, KeyPress,

Mac/README

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ values are available:
126126

127127
To build a universal binary that includes a 64-bit architecture, you must build
128128
on a system running OS X 10.5 or later. The ``all`` and ``64-bit`` flavors can
129-
only be built with an 10.5 SDK because ``ppc64`` support was only included with
129+
only be built with a 10.5 SDK because ``ppc64`` support was only included with
130130
OS X 10.5. Although legacy ``ppc`` support was included with Xcode 3 on OS X
131131
10.6, it was removed in Xcode 4, versions of which were released on OS X 10.6
132132
and which is the standard for OS X 10.7. To summarize, the

Modules/arraymodule.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2090,7 +2090,7 @@ array__array_reconstructor_impl(PyModuleDef *module, PyTypeObject *arraytype,
20902090
* that fits better. This may result in an array with narrower
20912091
* or wider elements.
20922092
*
2093-
* For example, if a 32-bit machine pickles a L-code array of
2093+
* For example, if a 32-bit machine pickles an L-code array of
20942094
* unsigned longs, then the array will be unpickled by 64-bit
20952095
* machine as an I-code array of unsigned ints.
20962096
*

Modules/audioop.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ fbound(double val, double minval, double maxval)
4646
*/
4747
#define BIAS 0x84 /* define the add-in bias for 16 bit samples */
4848
#define CLIP 32635
49-
#define SIGN_BIT (0x80) /* Sign bit for a A-law byte. */
49+
#define SIGN_BIT (0x80) /* Sign bit for an A-law byte. */
5050
#define QUANT_MASK (0xf) /* Quantization field mask. */
5151
#define SEG_SHIFT (4) /* Left shift for segment number. */
5252
#define SEG_MASK (0x70) /* Segment field mask. */
@@ -217,7 +217,7 @@ static PyInt16 _st_alaw2linear16[256] = {
217217
};
218218

219219
/*
220-
* linear2alaw() accepts an 13-bit signed integer and encodes it as A-law data
220+
* linear2alaw() accepts a 13-bit signed integer and encodes it as A-law data
221221
* stored in an unsigned char. This function should only be called with
222222
* the data shifted such that it only contains information in the lower
223223
* 13-bits.

PC/pyconfig.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ Py_NO_ENABLE_SHARED to find out. Also support MS_NO_COREDLL for b/w compat */
347347
# define SIZEOF_FPOS_T 8
348348
# define SIZEOF_HKEY 4
349349
# define SIZEOF_SIZE_T 4
350-
/* MS VS2005 changes time_t to an 64-bit type on all platforms */
350+
/* MS VS2005 changes time_t to a 64-bit type on all platforms */
351351
# if defined(_MSC_VER) && _MSC_VER >= 1400
352352
# define SIZEOF_TIME_T 8
353353
# else

Python/formatter_unicode.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1042,7 +1042,7 @@ format_float_internal(PyObject *value,
10421042
else if (type == 'r')
10431043
type = 'g';
10441044

1045-
/* Cast "type", because if we're in unicode we need to pass a
1045+
/* Cast "type", because if we're in unicode we need to pass an
10461046
8-bit char. This is safe, because we've restricted what "type"
10471047
can be. */
10481048
buf = PyOS_double_to_string(val, (char)type, precision, flags,
@@ -1221,7 +1221,7 @@ format_complex_internal(PyObject *value,
12211221
else if (type == 'r')
12221222
type = 'g';
12231223

1224-
/* Cast "type", because if we're in unicode we need to pass a
1224+
/* Cast "type", because if we're in unicode we need to pass an
12251225
8-bit char. This is safe, because we've restricted what "type"
12261226
can be. */
12271227
re_buf = PyOS_double_to_string(re, (char)type, precision, flags,

0 commit comments

Comments
 (0)