mirror of
https://github.com/newren/git-filter-repo.git
synced 2024-07-06 18:32:14 +02:00
filter-repo: fix printing of _IDs
The only times this is ever printed is when debugging filter-repo itself, or when trying to add tests to get to 100% line coverage. But the printing was broken when objects were skipped (which caused a mapping from int -> None). Fix the format specifier to handle this case too. Signed-off-by: Elijah Newren <newren@gmail.com>
This commit is contained in:
parent
3f0bfc2925
commit
6e0d846398
@ -335,7 +335,7 @@ class _IDs(object):
|
|||||||
"""
|
"""
|
||||||
rv = "Current count: %d\nTranslation:\n" % self._next_id
|
rv = "Current count: %d\nTranslation:\n" % self._next_id
|
||||||
for k in sorted(self._translation):
|
for k in sorted(self._translation):
|
||||||
rv += " %d -> %d\n" % (k, self._translation[k])
|
rv += " %d -> %s\n" % (k, self._translation[k])
|
||||||
|
|
||||||
rv += "Reverse translation:\n"
|
rv += "Reverse translation:\n"
|
||||||
for k in sorted(self._reverse_translation):
|
for k in sorted(self._reverse_translation):
|
||||||
|
Loading…
Reference in New Issue
Block a user