Fix too long line introducing E501 error
authorIan Lee <IanLee1521@gmail.com>
Tue, 16 Dec 2014 03:17:16 +0000 (19:17 -0800)
committerIan Lee <IanLee1521@gmail.com>
Tue, 16 Dec 2014 03:17:16 +0000 (19:17 -0800)
pep8.py

diff --git a/pep8.py b/pep8.py
index cbd3068e4b3c6b133c658b05c5f335ba604431f7..12fbe81c88e63a659f366834c0749a3daf122acf 100755 (executable)
--- 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)"