Skip to content

Commit 82137f8

Browse files
committed
Fix too long line introducing E501 error
1 parent e3ec49a commit 82137f8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pep8.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -926,7 +926,8 @@ def compound_statements(logical_line):
926926
if lambda_kw:
927927
before = line[:lambda_kw.start()].rstrip()
928928
if before[-1:] == '=' and isidentifier(before[:-1].strip()):
929-
yield 0, "E731 do not assign a lambda expression, use a def"
929+
yield 0, ("E731 do not assign a lambda expression, use a "
930+
"def")
930931
break
931932
if before.startswith('def '):
932933
yield 0, "E704 multiple statements on one line (def)"

0 commit comments

Comments
 (0)