@property
    def _view(self):
        '''
        Returns the view that should receive any actions.
        '''
        view = None
        try:
            view = self.view
        except AttributeError:
            try:
                view = self.window.active_view()
            except __HOLE__:
                raise AttributeError(
                    'ViCommandMixin must be used with a TextCommand or a WindowCommand class')
        return view
dataset/ETHPy150Open guillermooo/Vintageous/vi/core.py/ViCommandMixin._view