Skip to content

Commit

Permalink
Change yaml.load to yaml.safe_load
Browse files Browse the repository at this point in the history
Fix for issue #3
  • Loading branch information
j-jith committed Oct 19, 2022
1 parent 5a88fac commit 3d0bc69
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pythermophy/fluid.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def init_from_file(cls, filename):

try:
with open(filename, 'r') as fileh:
data = yaml.load(fileh)
data = yaml.safe_load(fileh)
#print(data)
try:
name = data['name']
Expand Down

0 comments on commit 3d0bc69

Please sign in to comment.