diff options
author | Florent Xicluna <florent.xicluna@gmail.com> | 2014-03-28 22:34:44 +0100 |
---|---|---|
committer | Florent Xicluna <florent.xicluna@gmail.com> | 2014-03-28 22:34:44 +0100 |
commit | 7e6cadfcd256fc05e73969e18d357ceb7e614034 (patch) | |
tree | 8b9fe21944dfea9d37f807614054306e103636ac | |
parent | f9bde22e49df43c4f5c7d9d1cd03573b0c855bad (diff) | |
download | pep8-7e6cadfcd256fc05e73969e18d357ceb7e614034.tar.gz |
Minor changes
-rwxr-xr-x | pep8.py | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -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') |