diff options
author | Mike Miller <mike@mtmxr.com> | 2016-06-02 12:41:11 -0700 |
---|---|---|
committer | Mike Miller <mike@mtmxr.com> | 2016-06-02 14:32:44 -0700 |
commit | a99bcecd4bb690271b5f0c92b22d3b2c8c872ec7 (patch) | |
tree | 04b9c9e50766ecbc68b6e14affdd345a9e903b38 | |
parent | 3944d9e2e8de97e65fa297a61f245ce0eae9e6d9 (diff) | |
download | pep8-a99bcecd4bb690271b5f0c92b22d3b2c8c872ec7.tar.gz |
Never use 'l' (lowercase letter el) as a variable name
-rwxr-xr-x | pycodestyle.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pycodestyle.py b/pycodestyle.py index 7026396..92fe12a 100755 --- a/pycodestyle.py +++ b/pycodestyle.py @@ -1219,7 +1219,7 @@ else: with open(filename, 'rb') as f: (coding, lines) = tokenize.detect_encoding(f.readline) f = TextIOWrapper(f, coding, line_buffering=True) - return [l.decode(coding) for l in lines] + f.readlines() + return [line.decode(coding) for line in lines] + f.readlines() except (LookupError, SyntaxError, UnicodeError): # Fall back if file encoding is improperly declared with open(filename, encoding='latin-1') as f: |