We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f9bde22 commit 7e6cadfCopy full SHA for 7e6cadf
1 file changed
pep8.py
@@ -1052,7 +1052,7 @@ def readlines(filename):
1052
"""Read the source code."""
1053
f = open(filename, 'rb')
1054
try:
1055
- coding, lines = tokenize.detect_encoding(f.readline)
+ (coding, lines) = tokenize.detect_encoding(f.readline)
1056
f = TextIOWrapper(f, coding, line_buffering=True)
1057
return [l.decode(coding) for l in lines] + f.readlines()
1058
except (LookupError, SyntaxError, UnicodeError):
@@ -1078,8 +1078,6 @@ def expand_indent(line):
1078
4
1079
>>> expand_indent('\t')
1080
8
1081
- >>> expand_indent(' \t')
1082
- 8
1083
>>> expand_indent(' \t')
1084
1085
0 commit comments