explosion / srsly

🦉 Modern high-performance serialization utilities for Python (JSON, MessagePack, Pickle)
MIT License
435 stars 31 forks source link

Don't re-use YAML object #57

Closed polm closed 3 years ago

polm commented 3 years ago

This builds on #56 so that the file-global yaml is never re-used (or used at all). Without this small change, technically you could load a file, have an exception, and have issues loading future files.