From d3ddae755d0417e39fc5323033c32603087180a6 Mon Sep 17 00:00:00 2001 From: Sergey Lukjanov Date: Fri, 15 Nov 2013 14:12:48 +0400 Subject: [PATCH] Remove check already released in hacking 0.8.0 Change-Id: Icb4b9897feef970fb99493ed9b867574de8f42e7 --- savanna/utils/hacking/checks.py | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/savanna/utils/hacking/checks.py b/savanna/utils/hacking/checks.py index 974091bce0..c01a7b6dd6 100644 --- a/savanna/utils/hacking/checks.py +++ b/savanna/utils/hacking/checks.py @@ -52,23 +52,6 @@ def import_db_only_in_conductor(logical_line, filename): "savanna/conductor/*") -def hacking_no_assert_equals(logical_line, tokens): - r"""assertEquals() is deprecated, use assertEqual instead. - - Copied from https://review.openstack.org/#/c/35962/ - - Okay: self.assertEqual(0, 0) - S362: self.assertEquals(0, 0) - """ - - for token_type, text, start_index, _, _ in tokens: - - if token_type == tokenize.NAME and text == "assertEquals": - yield ( - start_index[1], - "S362: assertEquals is deprecated, use assertEqual") - - def hacking_no_author_attr(logical_line, tokens): """__author__ should not be used. @@ -82,4 +65,3 @@ def hacking_no_author_attr(logical_line, tokens): def factory(register): register(import_db_only_in_conductor) - register(hacking_no_assert_equals)