summaryrefslogtreecommitdiff
path: root/pylint/extensions/comparetozero.py
diff options
context:
space:
mode:
Diffstat (limited to 'pylint/extensions/comparetozero.py')
-rw-r--r--pylint/extensions/comparetozero.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/pylint/extensions/comparetozero.py b/pylint/extensions/comparetozero.py
index 592e15a5b..0d0865a13 100644
--- a/pylint/extensions/comparetozero.py
+++ b/pylint/extensions/comparetozero.py
@@ -31,6 +31,7 @@ def _is_constant_zero(node):
class CompareToZeroChecker(checkers.BaseChecker):
"""Checks for comparisons to zero.
+
Most of the time you should use the fact that integers with a value of 0 are false.
An exception to this rule is when 0 is allowed in the program and has a
different meaning than None!