Skip to content

Commit

Permalink
[ck2yaml] Replace deprecated round_trip_load
Browse files Browse the repository at this point in the history
  • Loading branch information
ischoegl authored and bryanwweber committed Jun 11, 2021
1 parent 47eb64d commit e60f513
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion interfaces/cython/cantera/ck2yaml.py
Original file line number Diff line number Diff line change
Expand Up @@ -1375,8 +1375,9 @@ def load_extra_file(self, path):
"""
Load YAML-formatted entries from ``path`` on disk.
"""
yaml_ = yaml.YAML()
with open(path, 'rt', encoding="utf-8") as stream:
yml = yaml.round_trip_load(stream)
yml = yaml_.load(stream)

# do not overwrite reserved field names
reserved = {'generator', 'input-files', 'cantera-version', 'date',
Expand Down

0 comments on commit e60f513

Please sign in to comment.