Remove an extra word from the H901 error message.

Change-Id: I3b3ca887a3278bc56326343e8bb2130ca3933100
Reviewed-on: https://review.openstack.org/30821
Reviewed-by: Joe Gordon <joe.gordon0@gmail.com>
Approved: Sean Dague <sean@dague.net>
Reviewed-by: Sean Dague <sean@dague.net>
Approved: Joe Gordon <joe.gordon0@gmail.com>
Tested-by: Jenkins
This commit is contained in:
David Ripton 2013-05-28 22:31:38 -04:00 committed by Jenkins
parent df809dfda1
commit 5bb2e9fa87

View File

@ -521,7 +521,7 @@ def hacking_is_not(logical_line):
if (len(split_line) == 5 and split_line[0] == 'if' and if (len(split_line) == 5 and split_line[0] == 'if' and
split_line[1] == 'not' and split_line[3] == 'is'): split_line[1] == 'not' and split_line[3] == 'is'):
yield (logical_line.find('not'), "H901: Use the 'is not' " yield (logical_line.find('not'), "H901: Use the 'is not' "
"operator for when testing for unequal identities") "operator when testing for unequal identities")
@flake8ext @flake8ext