UTF-8 encoded files in python no longer work with pyflakes
Bug #1276744 reported by
Adi Roiban
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
pocket-lint |
Triaged
|
High
|
Unassigned |
Bug Description
With the latest code the text is kept internally as Unicode.
It is passed to pyflakes as unicode, but at least on Py 2.7 it fails as pyflakes wants byte string.
I will submit the test and a fix for that.
Error is:
0: Could not compile; encoding declaration in Unicode string:
Related branches
lp://staging/~adiroiban/pocket-lint/unicode-pyflakes
- Curtis Hovey: Approve (code)
-
Diff: 42 lines (+20/-1)2 files modifiedpocketlint/formatcheck.py (+5/-1)
pocketlint/tests/test_python.py (+15/-0)
description: | updated |
Changed in pocket-lint: | |
status: | New → Triaged |
importance: | Undecided → High |
To post a comment you must log in.