summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorent Xicluna <florent.xicluna@gmail.com>2014-03-28 22:34:44 +0100
committerFlorent Xicluna <florent.xicluna@gmail.com>2014-03-28 22:34:44 +0100
commit7e6cadfcd256fc05e73969e18d357ceb7e614034 (patch)
tree8b9fe21944dfea9d37f807614054306e103636ac
parentf9bde22e49df43c4f5c7d9d1cd03573b0c855bad (diff)
downloadpep8-7e6cadfcd256fc05e73969e18d357ceb7e614034.tar.gz
Minor changes
-rwxr-xr-xpep8.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/pep8.py b/pep8.py
index fd99a91..a1880fa 100755
--- a/pep8.py
+++ b/pep8.py
@@ -1052,7 +1052,7 @@ else:
"""Read the source code."""
f = open(filename, 'rb')
try:
- coding, lines = tokenize.detect_encoding(f.readline)
+ (coding, lines) = tokenize.detect_encoding(f.readline)
f = TextIOWrapper(f, coding, line_buffering=True)
return [l.decode(coding) for l in lines] + f.readlines()
except (LookupError, SyntaxError, UnicodeError):
@@ -1078,8 +1078,6 @@ def expand_indent(line):
4
>>> expand_indent('\t')
8
- >>> expand_indent(' \t')
- 8
>>> expand_indent(' \t')
8
>>> expand_indent(' \t')