parameters: (path)
return_statement: return False
docstring: Guess whether a path refers to a package directory.
docstring_summary: Guess whether a path refers to a package directory.
docstring_tokens: Guess whether a path refers to a package directory .
function: def ispackage(path):
      """Guess whether a path refers to a package directory."""
      if os.path.isdir(path):
          for ext in ('.py', '.pyc', '.pyo'):
              if os.path.isfile(os.path.join(path, '__init__' + ext)):
                  return True
      return False
function_tokens: def ispackage ( path ) : if os . path . isdir ( path ) : for ext in ( '.py' , '.pyc' , '.pyo' ) : if os . path . isfile ( os . path . join ( path , '__init__' + ext ) ) : return True return False