This repository has been archived on 2021-11-24. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
fsfw_example_public/generators/utility/mib_printer.py
T
Steffen Gaisser 4f6fe6959f Init commit
2021-04-27 17:22:34 +02:00

16 lines
345 B
Python

import pprint
PrettyPrinter = pprint.PrettyPrinter(indent=0, width=250)
class Printer:
def __init__(self):
pass
@staticmethod
def print_content(dictionary, leading_string: str = ""):
if leading_string != "":
print(leading_string)
PrettyPrinter.pprint(dictionary)
print("\r\n", end="")