Use tokenize.open to open files. #118

Merged
merged 1 commit into from May 23, 2015

Projects

None yet

2 participants

@The-Compiler
Contributor

Without this, e.g. checking an UTF-8 file (with # encoding=utf-8) on Windows
with Python 3 is broken (UnicodeDecodeError) because it's read as latin1.

@The-Compiler The-Compiler Use tokenize.open to open files.
Without this, e.g. checking an UTF-8 file (with # encoding=utf-8) on Windows
with Python 3 is broken (UnicodeDecodeError) because it's read as latin1.
5779900
@Nurdok Nurdok merged commit f7fad8c into PyCQA:master May 23, 2015

1 check passed

continuous-integration/travis-ci/pr The Travis CI build passed
Details
@The-Compiler The-Compiler deleted the unknown repository branch May 23, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment