Skip to content

Commit 9aa1a87

Browse files
authored
clarify docstring
1 parent 9ef4e56 commit 9aa1a87

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Lib/string/__init__.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -293,10 +293,10 @@ def parse(self, format_string):
293293
Return an iterable that contains tuples of the form
294294
(literal_text, field_name, format_spec, conversion).
295295
296-
*literal_text* can be zero length and *field_name*
297-
can be None, in which case nothing is formatted.
298-
299-
If *field_name* is not None, it is looked up and
296+
*literal_text* can be zero length;
297+
298+
*field_name* can be None, in which case there's no object
299+
to format and output; otherwise, it is looked up and
300300
formatted with *format_spec* and *conversion*.
301301
"""
302302
return _string.formatter_parser(format_string)

0 commit comments

Comments
 (0)