mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-08 08:20:28 +03:00
remove exception for ruamel.yaml on Debian/stretch
stretch is no more, and this code base specifies Python 3.9 as minimum.
This commit is contained in:
parent
74dddfd9fb
commit
822439dff5
1 changed files with 3 additions and 6 deletions
|
|
@ -940,12 +940,9 @@ def write_yaml(mf, app):
|
|||
return builds
|
||||
|
||||
yaml_app = _app_to_yaml(app)
|
||||
try:
|
||||
yaml = ruamel.yaml.YAML()
|
||||
yaml.indent(mapping=4, sequence=4, offset=2)
|
||||
yaml.dump(yaml_app, stream=mf)
|
||||
except AttributeError: # Debian/stretch's version does not have YAML()
|
||||
ruamel.yaml.round_trip_dump(yaml_app, mf, indent=4, block_seq_indent=2)
|
||||
|
||||
|
||||
def write_metadata(metadatapath, app):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue