laserkelvin / PySpecTools

Routines for rotational spectroscopy analysis written in Python 3
MIT License
31 stars 5 forks source link

Unsafe YAML loading #34

Open laserkelvin opened 2 years ago

laserkelvin commented 2 years ago

In routines, the YAML loading functionality relies on the out dated API, which apparently is unsafe/unsecure:

tests/test_database.py::test_db_io
  /home/kelvin/Python/PySpecTools/pyspectools/routines.py:92: PendingDeprecationWarning:

  load will be removed, use

    yaml=YAML(typ='unsafe', pure=True)
    yaml.load(...)

  instead