Show More
@@ -644,10 +644,10 b' def formatspec(expr, *args):' | |||||
644 | pos = 0 |
|
644 | pos = 0 | |
645 | arg = 0 |
|
645 | arg = 0 | |
646 | while pos < len(expr): |
|
646 | while pos < len(expr): | |
647 | c = expr[pos] |
|
647 | c = expr[pos:pos + 1] | |
648 | if c == '%': |
|
648 | if c == '%': | |
649 | pos += 1 |
|
649 | pos += 1 | |
650 | d = expr[pos] |
|
650 | d = expr[pos:pos + 1] | |
651 | if d == '%': |
|
651 | if d == '%': | |
652 | ret += d |
|
652 | ret += d | |
653 | elif d in 'dsnbr': |
|
653 | elif d in 'dsnbr': | |
@@ -656,7 +656,7 b' def formatspec(expr, *args):' | |||||
656 | elif d == 'l': |
|
656 | elif d == 'l': | |
657 | # a list of some type |
|
657 | # a list of some type | |
658 | pos += 1 |
|
658 | pos += 1 | |
659 | d = expr[pos] |
|
659 | d = expr[pos:pos + 1] | |
660 | ret += listexp(list(args[arg]), d) |
|
660 | ret += listexp(list(args[arg]), d) | |
661 | arg += 1 |
|
661 | arg += 1 | |
662 | else: |
|
662 | else: |
General Comments 0
You need to be logged in to leave comments.
Login now