Update docs/writing/style.rst

rpartition() takes a seperator as argument
This commit is contained in:
Jeroen Van Goey
2013-01-11 10:17:50 +01:00
parent d3218d431e
commit 65c5fb6280
+1 -1
View File
@@ -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::