Skip to content
Commit 9dfd9e60 authored by Timon Wong/NHNCN's avatar Timon Wong/NHNCN
Browse files

Fix [Error 22] under Windows reading .editorconfig

Under windows system, if the .editorconfig is not CRLF ended, after
reading file using `file.readline()`, the `file.tell()` will give 
negative values, which at last raises IOError: [Errno 22] Invalid 
argument. This patch open config files in "universal newlines" mode,
which treat all line endings as '\n', hopefully fixes that issue.
parent 74ddc394
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment