CIME.utils.file_contains_python_function

CIME.utils.file_contains_python_function(filepath, funcname)[source]

Checks whether the given file contains a top-level definition of the function ‘funcname’

Returns a boolean value (True if the file contains this function definition, False otherwise)