@@ -191,16 +191,14 @@ def get_identifiers(self):
191
191
192
192
193
193
########################################################################
194
- # the Formatter class
195
- # see PEP 3101 for details and purpose of this class
196
-
197
- # The hard parts are reused from the C implementation. They're exposed as "_"
198
- # prefixed methods of str.
199
-
194
+ # The Formatter class (PEP 3101).
195
+ #
200
196
# The overall parser is implemented in _string.formatter_parser.
201
- # The field name parser is implemented in _string.formatter_field_name_split
197
+ # The field name parser is implemented in _string.formatter_field_name_split.
202
198
203
199
class Formatter :
200
+ """See PEP 3101 for details and purpose of this class."""
201
+
204
202
def format (self ,format_string ,/ ,* args ,** kwargs ):
205
203
return self .vformat (format_string ,args ,kwargs )
206
204
@@ -293,7 +291,6 @@ def parse(self, format_string):
293
291
Return an iterable that contains tuples of the form
294
292
(literal_text, field_name, format_spec, conversion).
295
293
296
-
297
294
*field_name* can be None, in which case there's no object
298
295
to format and output; otherwise, it is looked up and
299
296
formatted with *format_spec* and *conversion*.