summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2008-12-13 03:03:41 (GMT)
committerBenjamin Peterson <benjamin@python.org>2008-12-13 03:03:41 (GMT)
commitd9c03e0da300bc52d5503fd18a95f897d92bf454 (patch)
tree0ca4593ccf531bab136428e781a803965bc035d2
parent43fcf3a493d249eec6baf7b096563a89a749d434 (diff)
downloadcpython-d9c03e0da300bc52d5503fd18a95f897d92bf454.zip
cpython-d9c03e0da300bc52d5503fd18a95f897d92bf454.tar.gz
cpython-d9c03e0da300bc52d5503fd18a95f897d92bf454.tar.bz2
string.maketrans -> str.maketrans
-rw-r--r--Doc/library/stdtypes.rst9
1 files changed, 3 insertions, 6 deletions
diff --git a/Doc/library/stdtypes.rst b/Doc/library/stdtypes.rst
index 5668623..68e8dba 100644
--- a/Doc/library/stdtypes.rst
+++ b/Doc/library/stdtypes.rst
@@ -1090,12 +1090,9 @@ functions based on regular expressions.
ordinals, strings or ``None``. Unmapped characters are left untouched.
Characters mapped to ``None`` are deleted.
- A *map* for :meth:`translate` is usually best created by
- :meth:`str.maketrans`.
-
- You can use the :func:`maketrans` helper function in the :mod:`string` module to
- create a translation table. For string objects, set the *table* argument to
- ``None`` for translations that only delete characters:
+ You can use :meth:`str.maketrans` to create a translation table. For string
+ objects, set the *table* argument to ``None`` for translations that only
+ delete characters:
.. note::