Issue #43 resolved

os.path.exists still causes problems in 1.0.3

Anonymous created an issue

I saw that between 1.0.2 and 1.0.3 you fixed one of the os.path.exists() occurrences to handle the case the input might be unicode text rather than a filename.

However, there are a few other places where os.path.exists is called that weren't fixed, and one was causing us problems (when calling polib.pofile(contents)).

I've attached a patch against 1.0.3 that fixes this. I did some cursory testing to verify that passing in a unicode file to polib.pofile() works now, as does passing in a filename.