equal
deleted
inserted
replaced
544 if pos in expected and expected[pos]: |
544 if pos in expected and expected[pos]: |
545 el = expected[pos].pop(0) |
545 el = expected[pos].pop(0) |
546 |
546 |
547 if el == l: # perfect match (fast) |
547 if el == l: # perfect match (fast) |
548 postout.append(" " + l) |
548 postout.append(" " + l) |
|
549 elif el and el.decode('string-escape') == l: |
|
550 postout.append(" " + el) # \-escape match |
549 elif (el and |
551 elif (el and |
550 (el.endswith(" (re)\n") and rematch(el[:-6] + '\n', l) or |
552 (el.endswith(" (re)\n") and rematch(el[:-6] + '\n', l) or |
551 el.endswith(" (glob)\n") and globmatch(el[:-8] + '\n', l))): |
553 el.endswith(" (glob)\n") and globmatch(el[:-8] + '\n', l))): |
552 postout.append(" " + el) # fallback regex/glob match |
554 postout.append(" " + el) # fallback regex/glob match |
553 else: |
555 else: |