mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Fix more implicit references to python2, adapt generate_manpages for python3
This commit is contained in:
parent
041e175319
commit
a97a9df316
2 changed files with 4 additions and 4 deletions
4
debian/rules
vendored
4
debian/rules
vendored
|
@ -9,8 +9,8 @@
|
||||||
|
|
||||||
override_dh_auto_build:
|
override_dh_auto_build:
|
||||||
# Generate bash completion file
|
# Generate bash completion file
|
||||||
python data/actionsmap/yunohost_completion.py
|
python3 data/actionsmap/yunohost_completion.py
|
||||||
python doc/generate_manpages.py --gzip --output doc/yunohost.8.gz
|
python3 doc/generate_manpages.py --gzip --output doc/yunohost.8.gz
|
||||||
|
|
||||||
override_dh_installinit:
|
override_dh_installinit:
|
||||||
dh_installinit -pyunohost --name=yunohost-api --restart-after-upgrade
|
dh_installinit -pyunohost --name=yunohost-api --restart-after-upgrade
|
||||||
|
|
|
@ -60,7 +60,7 @@ def main():
|
||||||
# Getting the dictionary containning what actions are possible per domain
|
# Getting the dictionary containning what actions are possible per domain
|
||||||
actionsmap = ordered_yaml_load(actionsmap)
|
actionsmap = ordered_yaml_load(actionsmap)
|
||||||
|
|
||||||
for i in actionsmap.keys():
|
for i in list(actionsmap.keys()):
|
||||||
if i.startswith("_"):
|
if i.startswith("_"):
|
||||||
del actionsmap[i]
|
del actionsmap[i]
|
||||||
|
|
||||||
|
@ -78,7 +78,7 @@ def main():
|
||||||
output.write(result)
|
output.write(result)
|
||||||
else:
|
else:
|
||||||
with gzip.open(output_path, mode="w", compresslevel=9) as output:
|
with gzip.open(output_path, mode="w", compresslevel=9) as output:
|
||||||
output.write(result)
|
output.write(result.encode())
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
|
|
Loading…
Add table
Reference in a new issue