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::