@@ -225,8 +225,8 @@ def register_format(
225
225
):
226
226
"""Register an available serialization format.
227
227
228
- `fmt` is a unique string identifying the format, such as `json`. Use a colon (`:`) to
229
- separate between subformats.
228
+ `fmt` is a unique string identifying the format, such as `json`. Use a colon (`:`)
229
+ to separate between subformats.
230
230
231
231
`dumpser` and `dumper` should be callables with the same purpose and arguments
232
232
that `json.dumps` and `json.dump`. If one of those is missing, it will be
@@ -236,9 +236,9 @@ def register_format(
236
236
that `json.loads` and `json.load`. If one of those is missing, it will be
237
237
generated automatically from the other.
238
238
239
- `extension` is the file extension used to guess the desired serialization format when loading
240
- from or dumping to a file. If not given, the part before the colon of `fmt` will be used.
241
- If `None`, the format will not be associated with any extension.
239
+ `extension` is the file extension used to guess the desired serialization format
240
+ when loading from or dumping to a file. If not given, the part before the colon of
241
+ `fmt` will be used. If `None`, the format will not be associated with any extension.
242
242
243
243
`register_class` is a callback made when a class is registered with
244
244
`serialize.register_class`. When a new format is registered,
0 commit comments