From 65c5fb6280d7ca2d8da8c56470dae791c1578ffa Mon Sep 17 00:00:00 2001 From: Jeroen Van Goey Date: Fri, 11 Jan 2013 10:17:50 +0100 Subject: [PATCH] Update docs/writing/style.rst rpartition() takes a seperator as argument --- docs/writing/style.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/writing/style.rst b/docs/writing/style.rst index bd264cef6..c43c45a9a 100644 --- a/docs/writing/style.rst +++ b/docs/writing/style.rst @@ -286,7 +286,7 @@ will not need that variable, use ``__``: .. code-block:: python filename = 'foobar.txt' - basename, __, ext = filename.rpartition() + basename, __, ext = filename.rpartition('.') .. note::