summaryrefslogtreecommitdiff
path: root/ironic/hacking
diff options
context:
space:
mode:
Diffstat (limited to 'ironic/hacking')
-rw-r--r--ironic/hacking/checks.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/ironic/hacking/checks.py b/ironic/hacking/checks.py
index 1d59efb37..6c5b49776 100644
--- a/ironic/hacking/checks.py
+++ b/ironic/hacking/checks.py
@@ -46,9 +46,9 @@ def check_explicit_underscore_import(logical_line, filename):
# checking needed once it is found.
if filename in UNDERSCORE_IMPORT_FILES:
pass
- elif (underscore_import_check.match(logical_line) or
- custom_underscore_check.match(logical_line)):
+ elif (underscore_import_check.match(logical_line)
+ or custom_underscore_check.match(logical_line)):
UNDERSCORE_IMPORT_FILES.append(filename)
- elif (translated_log.match(logical_line) or
- string_translation.match(logical_line)):
+ elif (translated_log.match(logical_line)
+ or string_translation.match(logical_line)):
yield(0, "N323: Found use of _() without explicit import of _!")