Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit bd7cf67

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

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed

‎docs/writing/style.rst

Copy file name to clipboardExpand all lines: docs/writing/style.rst
+1-1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.