reilleya / openMotor

An open-source internal ballistics simulator for rocket motor experimenters
GNU General Public License v3.0
398 stars 78 forks source link

uilib/fileIO.py:37: YAMLLoadWarning #130

Closed dhbarr closed 4 years ago

dhbarr commented 5 years ago
(.venv) dhbarr@alogicnamedjoe:~/openMotor$ python main.py
/home/dhbarr/openMotor/uilib/fileIO.py:37: YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Loader is unsafe. Please read https://msg.pyyaml.org/load for full details.
  fileData = yaml.load(readLocation)

Changing:

uilib/fileIO.py

from

fileData = yaml.load(readLocation)

to

fileData = yaml.full_load(readLocation)

does away with the deprecation warning.

I didn't test safe, base, or unsafe.

reilleya commented 5 years ago

Thanks for this! I'll make the change for the next release, unless you want to submit a PR.