diff options
author | Vladimir Rudnyh <rudnyh@corp.mail.ru> | 2014-05-10 01:08:42 +0400 |
---|---|---|
committer | Vladimir Rudnyh <rudnyh@corp.mail.ru> | 2014-05-10 01:09:53 +0400 |
commit | b2b195efa62d1465b753b7c9bf8e62793f0b6b01 (patch) | |
tree | 58725ff12c652c2849e143e77922cca95dccc355 | |
parent | 2e8e47168d53e2dc11d904eabc3a84e0d43a699c (diff) | |
download | pep8-b2b195efa62d1465b753b7c9bf8e62793f0b6b01.tar.gz |
Always open files with universal newline flag
-rwxr-xr-x | pep8.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1037,7 +1037,7 @@ if '' == ''.encode(): # Python 2: implicit encoding. def readlines(filename): """Read the source code.""" - with open(filename) as f: + with open(filename, 'rU') as f: return f.readlines() isidentifier = re.compile(r'[a-zA-Z_]\w*').match stdin_get_value = sys.stdin.read |