def new_func_strip_path(func_name):
 (filename, line, name) = func_name
 if filename.endswith('__init__.py'):
  return ((os.path.basename(filename[:(-12)]) + filename[(-12):]), line, name)
 return (os.path.basename(filename), line, name)

def new_func_strip_path ( func_name ) : ( filename , line , name ) = func_name if filename . endswith ( '__init__.py' ) : return ( ( os . path . basename ( filename [ : ( - 12 ) ] ) + filename [ ( - 12 ) : ] ) , line , name ) return ( os . path . basename ( filename ) , line , name )
make profiler output more readable by adding __init__ modules parents .