diff -r 5b0595339c9d Doc/library/reprlib.rst --- a/Doc/library/reprlib.rst Sun Aug 26 07:33:10 2012 +0300 +++ b/Doc/library/reprlib.rst Sun Aug 26 22:57:33 2012 -0700 @@ -129,7 +129,7 @@ Formatting methods for specific types are implemented as methods with a name based on the type name. In the method name, **TYPE** is replaced by - ``string.join(string.split(type(obj).__name__, '_'))``. Dispatch to these + ``'_'.join(type(obj).__name__.split())``. Dispatch to these methods is handled by :meth:`repr1`. Type-specific methods which need to recursively format a value should call ``self.repr1(subobj, level - 1)``.