def match_re_dotall(lines = None, res = None):
    """
    """
    if not type(lines) is type(""):
        lines = string.join(lines, "\n")
    if not type(res) is type(""):
        res = string.join(res, "\n")
    s = "^" + res + "$"
    try:
        expr = re.compile(s, re.DOTALL)
    except re.error, e:
        msg = "Regular expression error in %s: %s"
        raise re.error, (repr(s), e[0]) % msg
    if expr.match(lines):
        return 1
dataset/ETHPy150Open adblockplus/gyp/test/lib/TestCmd.py/match_re_dotall/swapped operands of `%`