'Emacs ipython-mode tags certain input lines.'

def check(self, line_info):

    if line_info.line.endswith('#    PYTHON-MODE'):
        return self.prefilter_manager.get_handler_by_name('emacs')
    else:
        return None
