diff options
author | Claudiu Popa <pcmanticore@gmail.com> | 2015-02-21 16:54:05 +0200 |
---|---|---|
committer | Claudiu Popa <pcmanticore@gmail.com> | 2015-02-21 16:54:05 +0200 |
commit | 8fee3b35e6ec67c9d873e994e285ff7d02e3b30e (patch) | |
tree | 48811a534b2f114aab0cd0bc7ee23d5912701c53 | |
parent | 34ba5a3f9359afd806effbe95459acf5ecfa7dcc (diff) | |
parent | 19881f6008d276a9554fdf9a32c187f06a8cb38f (diff) | |
download | pylint-8fee3b35e6ec67c9d873e994e285ff7d02e3b30e.tar.gz |
Merged in brettcannon/pylint (pull request #216)
Warn when filter, map, range, and filter are not used in iterating contexts
-rw-r--r-- | pylint/checkers/stdlib.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pylint/checkers/stdlib.py b/pylint/checkers/stdlib.py index b6b8026..ac8b876 100644 --- a/pylint/checkers/stdlib.py +++ b/pylint/checkers/stdlib.py @@ -88,7 +88,7 @@ class StdlibChecker(BaseChecker): 'See http://docs.python.org/2/library/functions.html#open'), 'W1502': ('Using datetime.time in a boolean context.', 'boolean-datetime', - 'Using datetetime.time in a boolean context can hide ' + 'Using datetime.time in a boolean context can hide ' 'subtle bugs when the time they represent matches ' 'midnight UTC. This behaviour was fixed in Python 3.5. ' 'See http://bugs.python.org/issue13936 for reference.', @@ -96,8 +96,8 @@ class StdlibChecker(BaseChecker): 'W1503': ('Redundant use of %s with constant ' 'value %r', 'redundant-unittest-assert', - 'The first argument of assertTrue and assertFalse is' - 'a condition. If a constant is passed as parameter, that' + 'The first argument of assertTrue and assertFalse is ' + 'a condition. If a constant is passed as parameter, that ' 'condition will be always true. In this case a warning ' 'should be emitted.') } |