deprecated.frosted
deprecated.frosted copied to clipboard
exception while during frosted
Hi
If I run frosted over a bigger codebase, I get the following exception. Unfortunately it does not tell me which file gives the problem (which it should) but simply excepts.
$ frosted --verbose -i E101 -i W101 -i E307 -i E103 -i E301 -i E302 -r .
Traceback (most recent call last):
File "MYPATH/testenv/bin/frosted", line 9, in
I have run into the same problem. I can't speak for @MirkoDziadzka but my problem comes from a non-utf-8 encoded file.
Specifically this line of this file: https://github.com/carlio/Pillow/blob/master/PIL/WalImageFile.py#L78 which is encoded using iso-8859-1.
You can also reproduce this very easily by creating a file with the following contents:
# ü
Then save it with ISO-8859-1 encoding (if you use vim, you can :w ++enc=iso-8859-1 filename.py) and run frosted filename.py.
This does not happen in pyflakes; I wasn't able to figure out exactly why but I think it's just by accident rather than design - in pyflakes the unicode codeString is never manipulated / str'd.