diff --git a/README.rst b/README.rst index bdaf7b1..e06792d 100644 --- a/README.rst +++ b/README.rst @@ -118,7 +118,7 @@ instead of ``except (SomeError,):``. Write ``except Exception:``, which catches exactly the same exceptions. **B015**: Pointless comparison. This comparison does nothing but -wastes CPU instructions. Remove it. +waste CPU instructions. Either prepend ``assert`` or remove it. **B016**: Cannot raise a literal. Did you intend to return it or raise an Exception? diff --git a/bugbear.py b/bugbear.py index b137d03..7cb4d08 100644 --- a/bugbear.py +++ b/bugbear.py @@ -687,8 +687,8 @@ def visit(self, node): } B015 = Error( message=( - "B015 Pointless comparison. This comparison does nothing but wastes " - "CPU instructions. Remove it." + "B015 Pointless comparison. This comparison does nothing but waste " + "CPU instructions. Either prepend `assert` or remove it." ) ) B016 = Error(