mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-04 22:40:29 +03:00
Fix ruamel round_trip_dump will be removed
https://sourceforge.net/p/ruamel-yaml/code/ci/4b91cd7e820baf97d8d28b1dcf77979530d43c3c/#diff-1 !932
This commit is contained in:
parent
8e8b87e0b4
commit
9d589071f0
1 changed files with 3 additions and 1 deletions
|
|
@ -964,7 +964,9 @@ def write_yaml(mf, app):
|
||||||
return builds
|
return builds
|
||||||
|
|
||||||
yaml_app = _app_to_yaml(app)
|
yaml_app = _app_to_yaml(app)
|
||||||
ruamel.yaml.round_trip_dump(yaml_app, mf, indent=4, block_seq_indent=2)
|
yaml = ruamel.yaml.YAML()
|
||||||
|
yaml.indent(mapping=4, sequence=4, offset=2)
|
||||||
|
yaml.dump(yaml_app, stream=mf)
|
||||||
|
|
||||||
|
|
||||||
build_line_sep = re.compile(r'(?<!\\),')
|
build_line_sep = re.compile(r'(?<!\\),')
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue