diff --git a/event.py b/event.py index dce348a..d60e9a0 100644 --- a/event.py +++ b/event.py @@ -33,7 +33,7 @@ class Index( object ): def read( self ): indata = open( self.path, 'r', encoding = "utf-8" ).read() ( pre, yamldata, docdata ) = re.split( "^---$", indata, flags = re.MULTILINE ) - self.fields = yaml.load( yamldata ) + self.fields = yaml.load( yamldata, Loader = yaml.SafeLoader ) self.doc = docdata.strip()