Skip to content

Commit

Permalink
Merge pull request #149 from casper-astro/yaml_fix
Browse files Browse the repository at this point in the history
Yaml loader fix
  • Loading branch information
jack-h committed Feb 23, 2022
2 parents dae4ef9 + a72b811 commit c232b3f
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion jasper_library/casper_platform.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def __init__(self, name):
'%s' % conffile)

with open(conffile, 'r') as fh:
self.conf = yaml.load(fh.read())
self.conf = yaml.load(fh.read(), Loader=yaml.Loader)

print(self.conf)
#: A dictionary of pin names associated with the platform.
Expand Down
2 changes: 1 addition & 1 deletion jasper_library/toolflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ def _parse_periph_file(self):
self.logger.error('Peripherals file doesn\'t exist!')
raise Exception('Peripherals file doesn\'t exist!')
with open(self.periph_file, 'r') as fh:
yaml_dict = yaml.load(fh)
yaml_dict = yaml.load(fh, Loader=yaml.Loader)
self.peripherals = yaml_dict['yellow_blocks']
self.user_modules = yaml_dict['user_modules']

Expand Down
1 change: 0 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
numpy<1.9
colorlog
PyYAML<=5.4.1
pyaml
odict
#xml2vhdl requirements
Expand Down

0 comments on commit c232b3f

Please sign in to comment.