Show More
@@ -624,9 +624,13 b' def formatspec(expr, *args):' | |||
|
624 | 624 | pos = 0 |
|
625 | 625 | arg = 0 |
|
626 | 626 | while pos < len(expr): |
|
627 |
|
|
|
628 |
if |
|
|
629 | pos += 1 | |
|
627 | q = expr.find('%', pos) | |
|
628 | if q < 0: | |
|
629 | ret.append(expr[pos:]) | |
|
630 | break | |
|
631 | ret.append(expr[pos:q]) | |
|
632 | pos = q + 1 | |
|
633 | if True: | |
|
630 | 634 | d = expr[pos] |
|
631 | 635 | if d == '%': |
|
632 | 636 | ret.append(d) |
@@ -642,8 +646,6 b' def formatspec(expr, *args):' | |||
|
642 | 646 | else: |
|
643 | 647 | raise error.Abort(_('unexpected revspec format character %s') |
|
644 | 648 | % d) |
|
645 | else: | |
|
646 | ret.append(c) | |
|
647 | 649 | pos += 1 |
|
648 | 650 | |
|
649 | 651 | return ''.join(ret) |
General Comments 0
You need to be logged in to leave comments.
Login now