ValvePython / vdf

📜 Package for working with Valve's text and binary KeyValue format
https://pypi.org/project/vdf/
MIT License
167 stars 31 forks source link

vdf.load will fail in python3 on file-like object that return bytes #2

Closed rossengeorgiev closed 8 years ago

rossengeorgiev commented 9 years ago

Ideally the behavior should change to:

rossengeorgiev commented 8 years ago

Probably best to solve this by wrapping string/file inputs into a BufferedReader. That way we can seek forward/back to locate BOM, regardless of the input supporting it.

rossengeorgiev commented 8 years ago

After some thought it would be best not to try and automatically handle bytes.