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