environment/lib/python2.7/site-packages/IPython/core/prefilter.py
def check(self, line_info):
        "Allow ! and !! in multi-line statements if multi_line_specials is on"
        # Note that this one of the only places we check the first character of
        # ifun and *not* the pre_char.  Also note that the below test matches
        # both ! and !!.
        if line_info.continue_prompt \
            and self.prefilter_manager.multi_line_specials:
                if line_info.esc == ESC_MAGIC:
                    return self.prefilter_manager.get_handler_by_name('magic')
        else:
            return None
def check(self, line_info):
        "Allow ! and !! in multi-line statements if multi_line_specials is on"
        # Note that this one of the only places we check the first character of
        # ifun and *not* the pre_char.  Also note that the below test matches
        # both ! and !!.
        if line_info.continue_prompt \
            and self.prefilter_manager.multi_line_specials:
                if line_info.esc == ESC_MAGIC:
                    return self.prefilter_manager.get_handler_by_name('magic')
        else:
            return None
Allow ! and !! in multi-line statements if multi_line_specials is on