summaryrefslogtreecommitdiff
path: root/main.py
diff options
context:
space:
mode:
Diffstat (limited to 'main.py')
-rw-r--r--main.py12
1 files changed, 7 insertions, 5 deletions
diff --git a/main.py b/main.py
index 389fb02..48f8020 100644
--- a/main.py
+++ b/main.py
@@ -267,12 +267,13 @@ def safe_dump(data, stream=None, **kwds):
"""
return dump_all([data], stream, Dumper=SafeDumper, **kwds)
+
def round_trip_dump(data, stream=None, Dumper=RoundTripDumper,
- default_style=None, default_flow_style=None,
- canonical=None, indent=None, width=None,
- allow_unicode=None, line_break=None,
- encoding=enc, explicit_start=None, explicit_end=None,
- version=None, tags=None, block_seq_indent=None):
+ default_style=None, default_flow_style=None,
+ canonical=None, indent=None, width=None,
+ allow_unicode=None, line_break=None,
+ encoding=enc, explicit_start=None, explicit_end=None,
+ version=None, tags=None, block_seq_indent=None):
allow_unicode = True if allow_unicode is None else allow_unicode
return dump_all([data], stream, Dumper=Dumper,
default_style=default_style,
@@ -285,6 +286,7 @@ def round_trip_dump(data, stream=None, Dumper=RoundTripDumper,
explicit_end=explicit_end,
version=version, tags=tags, block_seq_indent=block_seq_indent)
+
def add_implicit_resolver(tag, regexp, first=None,
Loader=Loader, Dumper=Dumper):
"""