From 5f0cb289c1d91513427ffdc8f646bc86516c2759 Mon Sep 17 00:00:00 2001 From: nico Date: Mon, 29 Jun 2020 11:03:49 +0200 Subject: black reformat * black reformatted the code --- config.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'config.py') diff --git a/config.py b/config.py index 20793e8..d4a7097 100644 --- a/config.py +++ b/config.py @@ -13,11 +13,11 @@ class Config: def __init__(self): # class variables self.content = None - self.conf_file = Path('/etc/ejabberd-metrics.yml') + self.conf_file = Path("/etc/ejabberd-metrics.yml") # dev config overwrite - if environ.get('ejabberd_metrics_dev'): - self.conf_file = Path('config.yml') + if environ.get("ejabberd_metrics_dev"): + self.conf_file = Path("config.yml") # read config file self._read() @@ -27,9 +27,9 @@ class Config: self._check() # open file as an iostream - with open(self.conf_file, 'r', encoding='utf-8') as f: + with open(self.conf_file, "r", encoding="utf-8") as f: try: - self.content = YAML(typ='safe').load(f) + self.content = YAML(typ="safe").load(f) # catch json decoding errors except (ParserError, ScannerError) as err: -- cgit v1.2.3-18-g5258