Skip to content

Commit 7e6cadf

Browse files
committed
Minor changes
1 parent f9bde22 commit 7e6cadf

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

pep8.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1052,7 +1052,7 @@ def readlines(filename):
10521052
"""Read the source code."""
10531053
f = open(filename, 'rb')
10541054
try:
1055-
coding, lines = tokenize.detect_encoding(f.readline)
1055+
(coding, lines) = tokenize.detect_encoding(f.readline)
10561056
f = TextIOWrapper(f, coding, line_buffering=True)
10571057
return [l.decode(coding) for l in lines] + f.readlines()
10581058
except (LookupError, SyntaxError, UnicodeError):
@@ -1078,8 +1078,6 @@ def expand_indent(line):
10781078
4
10791079
>>> expand_indent('\t')
10801080
8
1081-
>>> expand_indent(' \t')
1082-
8
10831081
>>> expand_indent(' \t')
10841082
8
10851083
>>> expand_indent(' \t')

0 commit comments

Comments
 (0)