Skip to content

Commit 6a8163a

Browse files
committed
Correct “an” → “a” with “Unicode”, “user”, “UTF”, etc
This affects documentation and code comments.
1 parent 8feff8f commit 6a8163a

27 files changed

Lines changed: 40 additions & 40 deletions

‎Doc/c-api/unicode.rst‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ APIs:
234234
235235
.. c:function:: PyObject *PyUnicode_FromString(const char *u)
236236
237-
Create a Unicode object from an UTF-8 encoded null-terminated char buffer
237+
Create a Unicode object from a UTF-8 encoded null-terminated char buffer
238238
*u*.
239239
240240
.. versionadded:: 2.6
@@ -347,7 +347,7 @@ APIs:
347347
348348
.. c:function:: PyObject* PyUnicode_FromEncodedObject(PyObject *obj, const char *encoding, const char *errors)
349349
350-
Coerce an encoded object *obj* to an Unicode object and return a reference with
350+
Coerce an encoded object *obj* to a Unicode object and return a reference with
351351
incremented refcount.
352352
353353
String and other char buffer compatible objects are decoded according to the
@@ -663,7 +663,7 @@ These are the UTF-16 codec APIs:
663663
664664
If *Py_UNICODE_WIDE* is defined, a single :c:type:`Py_UNICODE` value may get
665665
represented as a surrogate pair. If it is not defined, each :c:type:`Py_UNICODE`
666-
values is interpreted as an UCS-2 character.
666+
values is interpreted as a UCS-2 character.
667667
668668
Return *NULL* if an exception was raised by the codec.
669669

‎Doc/howto/urllib2.rst‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ The simplest way to use urllib2 is as follows::
5555
html = response.read()
5656

5757
Many uses of urllib2 will be that simple (note that instead of an 'http:' URL we
58-
could have used an URL starting with 'ftp:', 'file:', etc.). However, it's the
58+
could have used a URL starting with 'ftp:', 'file:', etc.). However, it's the
5959
purpose of this tutorial to explain the more complicated cases, concentrating on
6060
HTTP.
6161

‎Doc/library/ctypes.rst‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1873,7 +1873,7 @@ Utility functions
18731873
allows specifying the size of the array if the length of the string should not
18741874
be used.
18751875

1876-
If the first parameter is a 8-bit string, it is converted into an unicode string
1876+
If the first parameter is a 8-bit string, it is converted into a unicode string
18771877
according to ctypes conversion rules.
18781878

18791879

‎Doc/library/heapq.rst‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ for a tournament. The numbers below are *k*, not ``a[k]``::
244244

245245
15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
246246

247-
In the tree above, each cell *k* is topping ``2*k+1`` and ``2*k+2``. In an usual
247+
In the tree above, each cell *k* is topping ``2*k+1`` and ``2*k+2``. In a usual
248248
binary tournament we see in sports, each cell is the winner over the two cells
249249
it tops, and we can trace the winner down the tree to see all opponents s/he
250250
had. However, in many computer applications of such tournaments, we do not need

‎Doc/library/ic.rst‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ methods:
8383

8484
.. method:: IC.parseurl(data[, start[, end[, hint]]])
8585

86-
Find an URL somewhere in *data* and return start position, end position and the
86+
Find a URL somewhere in *data* and return start position, end position and the
8787
URL. The optional *start* and *end* can be used to limit the search, so for
8888
instance if a user clicks in a long text field you can pass the whole text field
8989
and the click-position in *start* and this routine will return the whole URL in

‎Doc/library/io.rst‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -661,7 +661,7 @@ Text I/O
661661

662662
.. class:: TextIOBase
663663

664-
Base class for text streams. This class provides an unicode character
664+
Base class for text streams. This class provides a unicode character
665665
and line based interface to stream I/O. There is no :meth:`readinto`
666666
method because Python's :class:`unicode` strings are immutable.
667667
It inherits :class:`IOBase`. There is no public constructor.

‎Doc/library/logging.handlers.rst‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -743,7 +743,7 @@ supports sending logging messages to a Web server, using either ``GET`` or
743743

744744
.. method:: emit(record)
745745

746-
Sends the record to the Web server as an URL-encoded dictionary. The
746+
Sends the record to the Web server as a URL-encoded dictionary. The
747747
:meth:`mapLogRecord` method is used to convert the record to the
748748
dictionary to be sent.
749749

‎Doc/library/ttk.rst‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -686,7 +686,7 @@ the widget option ``displaycolumns``. The tree widget can also display column
686686
headings. Columns may be accessed by number or symbolic names listed in the
687687
widget option columns. See `Column Identifiers`_.
688688

689-
Each item is identified by an unique name. The widget will generate item IDs
689+
Each item is identified by a unique name. The widget will generate item IDs
690690
if they are not supplied by the caller. There is a distinguished root item,
691691
named ``{}``. The root item itself is not displayed; its children appear at the
692692
top level of the hierarchy.

‎Doc/library/webbrowser.rst‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ browsers are not available on Unix, the controlling process will launch a new
3333
browser and wait.
3434

3535
The script :program:`webbrowser` can be used as a command-line interface for the
36-
module. It accepts an URL as the argument. It accepts the following optional
36+
module. It accepts a URL as the argument. It accepts the following optional
3737
parameters: ``-n`` opens the URL in a new browser window, if possible;
3838
``-t`` opens the URL in a new browser page ("tab"). The options are,
3939
naturally, mutually exclusive. Usage example::

‎Doc/library/xml.etree.elementtree.rst‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -901,7 +901,7 @@ QName Objects
901901
to get proper namespace handling on output. *text_or_uri* is a string
902902
containing the QName value, in the form {uri}local, or, if the tag argument
903903
is given, the URI part of a QName. If *tag* is given, the first argument is
904-
interpreted as an URI, and this argument is interpreted as a local name.
904+
interpreted as a URI, and this argument is interpreted as a local name.
905905
:class:`QName` instances are opaque.
906906

907907

0 commit comments

Comments
 (0)