Skip to content

Commit bd7cf67

Browse files
author
Kenneth Reitz
committed
Merge pull request realpython#237 from BioGeek/patch-1
Update docs/writing/style.rst
2 parents 2fc8d0c + 65c5fb6 commit bd7cf67

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/writing/style.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ will not need that variable, use ``__``:
286286
.. code-block:: python
287287
288288
filename = 'foobar.txt'
289-
basename, __, ext = filename.rpartition()
289+
basename, __, ext = filename.rpartition('.')
290290
291291
.. note::
292292

0 commit comments

Comments
 (0)