Merge lp:~henninge/pocket-lint/bug-776389-pep-0263-encoding into lp:pocket-lint
Proposed by
Henning Eggers
Status: | Merged | ||||
---|---|---|---|---|---|
Merged at revision: | 379 | ||||
Proposed branch: | lp:~henninge/pocket-lint/bug-776389-pep-0263-encoding | ||||
Merge into: | lp:pocket-lint | ||||
Diff against target: |
94 lines (+37/-8) 2 files modified
pocketlint/formatcheck.py (+10/-5) pocketlint/tests/test_python.py (+27/-3) |
||||
To merge this branch: | bzr merge lp:~henninge/pocket-lint/bug-776389-pep-0263-encoding | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Curtis Hovey | Pending | ||
Review via email:
|
Description of the change
Fix bug 776389 by applying the regex from PEP 0263 to the first two lines of each file. Store the encoding instead of the old is_utf8 flag.
Currently, no further use is made of this extended information but I guess check_text could verify the encoding of each line now. It could also check if the encoding is valid in the first place.
To post a comment you must log in.