summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Lee <IanLee1521@gmail.com>2014-12-15 19:17:16 -0800
committerIan Lee <IanLee1521@gmail.com>2014-12-15 19:17:16 -0800
commit82137f8e662974063fcacec37f6abbe8d96768d3 (patch)
treeaf2e55e7c9d52828920e9344148c3dd6acc5a803
parente3ec49a97d8b84a3daa548574f790b6d6a6f015f (diff)
downloadpep8-82137f8e662974063fcacec37f6abbe8d96768d3.tar.gz
Fix too long line introducing E501 error
-rwxr-xr-xpep8.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/pep8.py b/pep8.py
index cbd3068..12fbe81 100755
--- a/pep8.py
+++ b/pep8.py
@@ -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)"