Skip to content

Commit

Permalink
Add unregister_format
Browse files Browse the repository at this point in the history
  • Loading branch information
hgrecco committed Dec 4, 2023
1 parent 486db4b commit 9af6962
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions serialize/all.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,11 @@ def traverse_and_decode(obj, decode_func=None, trav_dict=None):
MISSING = object()


def unregister_format(fmt):
"""Register an available serialization format."""
del FORMATS[fmt]


def register_format(
fmt,
dumpser=None,
Expand Down

0 comments on commit 9af6962

Please sign in to comment.