dtao / safe_yaml

Parse YAML safely
MIT License
217 stars 63 forks source link

load_file returns a parser instead of {} for an empty file. #49

Closed spencerroan closed 11 years ago

spencerroan commented 11 years ago

This issue occurs for 0.9.7 but not for 0.9.6

dtao commented 11 years ago

Ugh. I suck. (Will commit a fix in short order.)

dtao commented 11 years ago

(Incidentally, it should return false, right? Not {}? That's what I'm seeing w/ Psych, at least.)

dtao commented 11 years ago

OK, just committed a fix. Let me know if (a) this works for you and/or (b) you see anything wrong with it.

spencerroan commented 11 years ago

I'll check it tomorrow! thanks for the quick response time!