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
This commit is contained in:
Maximilian Keßler 2021-09-16 12:52:31 +02:00
parent 08c2fae662
commit 8d57fd37f5

View File

@ -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