diff options
author | Benjamin Peterson <benjamin@python.org> | 2008-12-13 03:03:41 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2008-12-13 03:03:41 (GMT) |
commit | d9c03e0da300bc52d5503fd18a95f897d92bf454 (patch) | |
tree | 0ca4593ccf531bab136428e781a803965bc035d2 | |
parent | 43fcf3a493d249eec6baf7b096563a89a749d434 (diff) | |
download | cpython-d9c03e0da300bc52d5503fd18a95f897d92bf454.zip cpython-d9c03e0da300bc52d5503fd18a95f897d92bf454.tar.gz cpython-d9c03e0da300bc52d5503fd18a95f897d92bf454.tar.bz2 |
string.maketrans -> str.maketrans
-rw-r--r-- | Doc/library/stdtypes.rst | 9 |
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:: |