From 8baedc2b7268bd5ed996126fb024938532547461 Mon Sep 17 00:00:00 2001 From: Feng Shengqin Date: Thu, 8 Jun 2017 16:48:56 +0800 Subject: [PATCH] Fix typo in magnum/hacking/checks.py for consistency Change-Id: I0396ed22d8864c4e125d4bf4f592b53b93ded6ee --- magnum/hacking/checks.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) mode change 100644 => 100755 magnum/hacking/checks.py diff --git a/magnum/hacking/checks.py b/magnum/hacking/checks.py old mode 100644 new mode 100755 index 25f15d38e3..ee264d8881 --- a/magnum/hacking/checks.py +++ b/magnum/hacking/checks.py @@ -38,7 +38,7 @@ assert_equal_in_end_with_true_or_false_re = re.compile( r"assertEqual\((\w|[][.'\"])+ in (\w|[][.'\", ])+, (True|False)\)") assert_equal_in_start_with_true_or_false_re = re.compile( r"assertEqual\((True|False), (\w|[][.'\"])+ in (\w|[][.'\", ])+\)") -asse_equal_with_is_not_none_re = re.compile( +assert_equal_with_is_not_none_re = re.compile( r"assertEqual\(.*?\s+is+\s+not+\s+None\)$") assert_true_isinstance_re = re.compile( r"(.)*assertTrue\(isinstance\((\w|\.|\'|\"|\[|\])+, " @@ -71,7 +71,7 @@ def no_mutable_default_args(logical_line): def assert_equal_not_none(logical_line): """Check for assertEqual(A is not None) sentences M302""" msg = "M302: assertEqual(A is not None) sentences not allowed." - res = asse_equal_with_is_not_none_re.search(logical_line) + res = assert_equal_with_is_not_none_re.search(logical_line) if res: yield (0, msg)