From 8d57fd37f5231c4db5e2b1c6652a1a7860316ad9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maximilian=20Ke=C3=9Fler?= Date: Thu, 16 Sep 2021 12:52:31 +0200 Subject: [PATCH] use safe load method for loading yaml files since yaml.load() is deprecated, and the loaded stuff does not need to be complex anyways, use yaml.safe_load(). This gets rid of the deprecated yaml.load() method and uses the safe approach for loading yaml files --- scripts/courses.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/courses.py b/scripts/courses.py index cc22c56..9f46278 100755 --- a/scripts/courses.py +++ b/scripts/courses.py @@ -9,7 +9,7 @@ class Course(): self.path = path self.name = path.stem - self.info = yaml.load((path / COURSE_INFO_FILE).open()) + self.info = yaml.safe_load((path / COURSE_INFO_FILE).open()) self._lectures = None @property