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