From 9dfefa12cc08000577849ad88463b34d32f06dbb Mon Sep 17 00:00:00 2001 From: Nolan Reisbeck Date: Wed, 11 May 2022 22:54:22 -0700 Subject: [PATCH] fix: `gibberis_detector/config.py` to use `yaml.safe_load()` --- gibberish_detector/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gibberish_detector/config.py b/gibberish_detector/config.py index 3e47254..d80a784 100755 --- a/gibberish_detector/config.py +++ b/gibberish_detector/config.py @@ -9,6 +9,6 @@ CONFIG_PATH = "config.yml" with open(os.path.join(__location__, CONFIG_PATH), 'r') as ymlfile: - cfg = yaml.load(ymlfile) + cfg = yaml.safe_load(ymlfile) # Load the yaml content into this module global variables globals().update(cfg)