def find_documentation(module_data):
 start_line = (-1)
 mod_ast_tree = ast.parse(module_data)
 for child in mod_ast_tree.body:
  if isinstance(child, ast.Assign):
   for target in child.targets:
    if (target.id == 'DOCUMENTATION'):
     start_line = (child.lineno - 1)
     break
 return start_line

def find_documentation ( module_data ) : start_line = ( - 1 ) mod_ast_tree = ast . parse ( module_data ) for child in mod_ast_tree . body : if isinstance ( child , ast . Assign ) : for target in child . targets : if ( target . id == 'DOCUMENTATION' ) : start_line = ( child . lineno - 1 ) break return start_line
find the documentation metadata for a module file .