def is_pubspec(path_or_view):
    """Returns `True` if @path_or_view is 'pubspec.yaml'.
    """
    try:
        if path_or_view.file_name() is None:
            return
        return path_or_view.file_name().endswith('pubspec.yaml')
    except __HOLE__:
        return path_or_view.endswith('pubspec.yaml')
dataset/ETHPy150Open guillermooo/dart-sublime-bundle/lib/path.py/is_pubspec