Skip to content

Commit

Permalink
Merge pull request #3 from sgnn7/patch-1
Browse files Browse the repository at this point in the history
Fix yaml plugin loading on Python 3.9
  • Loading branch information
divi255 authored Nov 19, 2021
2 parents a2e2720 + d27ec37 commit 3560b64
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pptop/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -1318,7 +1318,7 @@ def format_plugin_option(dct, o, v):
if not os.path.isdir(_d.pptop_dir + '/lib'):
os.mkdir(_d.pptop_dir + '/lib')
with open(config_file) as fh:
config.update(yaml.load(fh.read()))
config.update(yaml.safe_load(fh.read()))

console = config.get('console')
if console is None: console = {}
Expand Down

0 comments on commit 3560b64

Please sign in to comment.