From: Benjamin Peterson Date: Sat, 13 Dec 2008 03:03:41 +0000 (+0000) Subject: string.maketrans -> str.maketrans X-Git-Tag: v3.1a1~708 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d9c03e0da300bc52d5503fd18a95f897d92bf454;p=python string.maketrans -> str.maketrans --- diff --git a/Doc/library/stdtypes.rst b/Doc/library/stdtypes.rst index 5668623ed3..68e8dbafdb 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::