equal
deleted
inserted
replaced
613 |
613 |
614 def highlightdiff(line, color): |
614 def highlightdiff(line, color): |
615 if not color: |
615 if not color: |
616 return line |
616 return line |
617 assert pygmentspresent |
617 assert pygmentspresent |
618 return pygments.highlight(line, difflexer, terminal256formatter) |
618 return pygments.highlight(line.decode('latin1'), difflexer, |
|
619 terminal256formatter).encode('latin1') |
619 |
620 |
620 def highlightmsg(msg, color): |
621 def highlightmsg(msg, color): |
621 if not color: |
622 if not color: |
622 return msg |
623 return msg |
623 assert pygmentspresent |
624 assert pygmentspresent |