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:
parent
08c2fae662
commit
8d57fd37f5
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue