Updated to use pprint

This commit is contained in:
Anon 2022-08-27 01:42:26 -07:00
parent f1b0cddd46
commit e0581a21fe

View File

@ -1,7 +1,7 @@
#! /usr/bin/env python3
# Mirai Nikki Bot a video frame posting bot for Pleroma
# Copyright (C) 2022 Anon
# Yandere Lewd Bot, an image posting bot for Pleroma
# Copyright (C) 2022 Anon <yanderefedi@proton.me>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@ -191,7 +191,7 @@ def settings_server_decrypt_cfg(settings_server, settings_encrypt):
def main():
import argparse
import yanlib
from pprint import pformat
default_cfg = "cfg"
@ -235,8 +235,8 @@ def main():
("salt", salt)
])
yanlib.pp_ordered_dict("settings_server", settings_server)
yanlib.pp_dict("settings_encrypt", settings_encrypt)
print("settings_server = {}".format(pformat(settings_server)))
print("settings_encrypt = {}".format(pformat(settings_encrypt)))
return 0