aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Rammhold <andreas@rammhold.de>2020-02-17 19:44:05 +0100
committerThomas Gleixner <tglx@linutronix.de>2020-02-17 19:50:26 +0100
commit6bcb72f32e005f5efb0775994e4edd105721eca8 (patch)
tree8d085a4b0a588d9837a2d9434d3539f137d2c24f
parent231d9f0bdb09d53a993fa10093871fe88eac2563 (diff)
downloadremail-6bcb72f32e005f5efb0775994e4edd105721eca8.tar.gz
ruamel/config: Use ruamel.yaml instead of yaml
This removes the (undocumented) dependency on PyYAML and just uses ruamel.yaml that is already a dependency. Signed-off-by: Andreas Rammhold <andreas@rammhold.de> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
-rw-r--r--remail/maillist.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/remail/maillist.py b/remail/maillist.py
index 6b1b699..c970730 100644
--- a/remail/maillist.py
+++ b/remail/maillist.py
@@ -18,8 +18,9 @@ from email.utils import make_msgid, formatdate
from email.policy import EmailPolicy
from flufl.bounce import all_failures
+from ruamel.yaml import YAML
+
import mailbox
-import yaml
import os
class maillist(object):
@@ -315,7 +316,7 @@ class maillist_checker(object):
def __init__(self, configfile, logger):
self.logger = logger
try:
- cfgdict = yaml.load(open(configfile))
+ cfgdict = YAML().load(open(configfile))
except Exception as ex:
txt = 'Failed to load list configfile %s' %configfile
logger.log_exception(txt, ex)