Skip to content

Commit b2b195e

Browse files
author
Vladimir Rudnyh
committed
Always open files with universal newline flag
1 parent 2e8e471 commit b2b195e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pep8.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1037,7 +1037,7 @@ def python_3000_backticks(logical_line):
10371037
# Python 2: implicit encoding.
10381038
def readlines(filename):
10391039
"""Read the source code."""
1040-
with open(filename) as f:
1040+
with open(filename, 'rU') as f:
10411041
return f.readlines()
10421042
isidentifier = re.compile(r'[a-zA-Z_]\w*').match
10431043
stdin_get_value = sys.stdin.read

0 commit comments

Comments
 (0)