Merge lp:~adiroiban/pocket-lint/bug-889648 into lp:pocket-lint
Proposed by
Adi Roiban
Status: | Merged |
---|---|
Approved by: | Curtis Hovey |
Approved revision: | 402 |
Merged at revision: | 402 |
Proposed branch: | lp:~adiroiban/pocket-lint/bug-889648 |
Merge into: | lp:pocket-lint |
Diff against target: |
59 lines (+33/-0) 2 files modified
pocketlint/formatcheck.py (+10/-0) pocketlint/tests/test_python.py (+23/-0) |
To merge this branch: | bzr merge lp:~adiroiban/pocket-lint/bug-889648 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Curtis Hovey | code | Approve | |
Review via email:
|
Description of the change
Hi,
This is a stupid code that I have added just to start the discussion about how this should be solved.
The problem is that when calling pocket-lint using 'check_sources', PythonChecker will always receive an ascii text.
In PythonChecker tests, it is passed both ascii and unicode texts.
This inconsistency does not allow using sometihg line 'line = line.decode(
Cheers,
Adi
To post a comment you must log in.
Line 52 should read
full_text = encoding_line + line_79_chars
I have fixed this in my merge.