Image constructor doesn't accept unicode filenames
jferguson-gnubio opened this issue · 0 comments
jferguson-gnubio commented
The test I'm seeing, currently in ImageClass.py line 1038 is
type(source) == type(str())
Couldn't or shouldn't it be:
isinstance(source, basestring)
?
Perhaps there are pitfalls to this? but I was passing unicode pathnames (as a result of other code paths giving me the pathname), which is a reasonable thing to do, and getting an Image object with no data in it, with no exceptions raised or anything. Took me a long time to find out what was going on...