ironic.hacking.checks module¶
-
ironic.hacking.checks.
check_explicit_underscore_import
(logical_line, filename)[source]¶ Check for explicit import of the _ function
We need to ensure that any files that are using the _() function to translate logs are explicitly importing the _ function. We can’t trust unit test to catch whether the import has been added so we need to check for it here.