diff options
author | Ian Lee <IanLee1521@gmail.com> | 2014-12-15 19:17:16 -0800 |
---|---|---|
committer | Ian Lee <IanLee1521@gmail.com> | 2014-12-15 19:17:16 -0800 |
commit | 82137f8e662974063fcacec37f6abbe8d96768d3 (patch) | |
tree | af2e55e7c9d52828920e9344148c3dd6acc5a803 | |
parent | e3ec49a97d8b84a3daa548574f790b6d6a6f015f (diff) | |
download | pep8-82137f8e662974063fcacec37f6abbe8d96768d3.tar.gz |
Fix too long line introducing E501 error
-rwxr-xr-x | pep8.py | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -926,7 +926,8 @@ def compound_statements(logical_line): if lambda_kw: before = line[:lambda_kw.start()].rstrip() if before[-1:] == '=' and isidentifier(before[:-1].strip()): - yield 0, "E731 do not assign a lambda expression, use a def" + yield 0, ("E731 do not assign a lambda expression, use a " + "def") break if before.startswith('def '): yield 0, "E704 multiple statements on one line (def)" |