summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEzio Melotti <ezio.melotti@gmail.com>2012-01-16 06:21:24 (GMT)
committerEzio Melotti <ezio.melotti@gmail.com>2012-01-16 06:21:24 (GMT)
commit055d70d5889211460971f498ddf82c5bc0b61dc8 (patch)
treec5c92bd66e6f53c72f5e334e9b6c83dc0d58255b
parent465b58e5ee7b13795e2c21f77343c3319ba64786 (diff)
downloadcpython-055d70d5889211460971f498ddf82c5bc0b61dc8.zip
cpython-055d70d5889211460971f498ddf82c5bc0b61dc8.tar.gz
cpython-055d70d5889211460971f498ddf82c5bc0b61dc8.tar.bz2
#13695: fix a couple of typos in the doc.
-rw-r--r--Doc/library/functools.rst4
-rw-r--r--Doc/library/unittest.rst4
2 files changed, 4 insertions, 4 deletions
diff --git a/Doc/library/functools.rst b/Doc/library/functools.rst
index 10c984f..09e6a3b 100644
--- a/Doc/library/functools.rst
+++ b/Doc/library/functools.rst
@@ -26,8 +26,8 @@ The :mod:`functools` module defines the following functions:
tools that accept key functions (such as :func:`sorted`, :func:`min`,
:func:`max`, :func:`heapq.nlargest`, :func:`heapq.nsmallest`,
:func:`itertools.groupby`). This function is primarily used as a transition
- tool for programs being converted to Py3.x where comparison functions are no
- longer supported.
+ tool for programs being converted to Python 3 where comparison functions are
+ no longer supported.
A compare function is any callable that accept two arguments, compares them,
and returns a negative number for less-than, zero for equality, or a positive
diff --git a/Doc/library/unittest.rst b/Doc/library/unittest.rst
index 787d1a6..244dc43 100644
--- a/Doc/library/unittest.rst
+++ b/Doc/library/unittest.rst
@@ -840,13 +840,13 @@ Test cases
In addition, if *first* and *second* are the exact same type and one of
list, tuple, dict, set, frozenset or unicode or any type that a subclass
- registers with :meth:`addTypeEqualityFunc` the type specific equality
+ registers with :meth:`addTypeEqualityFunc` the type-specific equality
function will be called in order to generate a more useful default
error message (see also the :ref:`list of type-specific methods
<type-specific-methods>`).
.. versionchanged:: 2.7
- Added the automatic calling of type specific equality function.
+ Added the automatic calling of type-specific equality function.
.. method:: assertNotEqual(first, second, msg=None)