Originally Posted by chaley
Thanks, but the problem arises elsewhere. The 'etree' package does strange things with encoding, returning byte strings sometimes and unicode other times. Same thing is true when opening files: now sometimes you need 'rb' and sometimes 'r', and sometimes the "newline=" argument. The code made no provision for getting images vs text. And so on.
|