def _pop_comment(self, statements, comment_re):
res = []<EOL>match = None<EOL>for st in statements:<EOL><INDENT>if match or not isinstance(st, ast.Comment):<EOL><INDENT>res.append(st)<EOL>continue<EOL><DEDENT>match = comment_re.match(st.text)<EOL>if not match:<EOL><INDENT>res.append(st)<EOL><DEDENT><DEDENT>return match, res<EOL>
Look for the comment that matches the given regex.
        If it matches, return the regex match object and list of statements
        without the special one.