summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorFlorent Xicluna <florent.xicluna@gmail.com>2014-04-26 18:34:09 +0200
committerFlorent Xicluna <florent.xicluna@gmail.com>2014-04-26 18:34:09 +0200
commitb29fb6a086edcf7638a9ef02790fad8dc0d24e34 (patch)
tree677836b059c7dacfa3ac7a1249fe01a53c70d056 /docs
parentf4e57cd75e7d949d42be58d59982f2b40bdce989 (diff)
downloadpep8-b29fb6a086edcf7638a9ef02790fad8dc0d24e34.tar.gz
Report E731 for lambda assignment, return E704 for one-liner def instead of E701; issue #277
Diffstat (limited to 'docs')
-rw-r--r--docs/intro.rst4
1 files changed, 4 insertions, 0 deletions
diff --git a/docs/intro.rst b/docs/intro.rst
index 018521d..2033782 100644
--- a/docs/intro.rst
+++ b/docs/intro.rst
@@ -304,6 +304,8 @@ This is the current list of error and warning codes:
+----------+----------------------------------------------------------------------+
| E703 | statement ends with a semicolon |
+----------+----------------------------------------------------------------------+
+| E704 | multiple statements on one line (def) |
++----------+----------------------------------------------------------------------+
| E711 (^) | comparison to None should be 'if cond is None:' |
+----------+----------------------------------------------------------------------+
| E712 (^) | comparison to True should be 'if cond is True:' or 'if cond:' |
@@ -314,6 +316,8 @@ This is the current list of error and warning codes:
+----------+----------------------------------------------------------------------+
| E721 | do not compare types, use 'isinstance()' |
+----------+----------------------------------------------------------------------+
+| E731 | do not assign a lambda expression, use a def |
++----------+----------------------------------------------------------------------+
+----------+----------------------------------------------------------------------+
| **E9** | *Runtime* |
+----------+----------------------------------------------------------------------+