Skip to content
Snippets Groups Projects
Commit 8d961ea5 authored by Michael J. Pedersen's avatar Michael J. Pedersen
Browse files

Making compatible with Python 2.4

parent b5d4d155
No related branches found
No related tags found
No related merge requests found
......@@ -436,7 +436,10 @@
commits = [commit for commit in commits if not commit in self._map_git]
# import each of the commits, oldest first
total = len(commits)
magnitude = int(math.log(total, 10)) + 1 if total else 1
if total:
magnitude = int(math.log(total, 10)) + 1
else:
magnitude = 1
for i, csha in enumerate(commits):
if i%100 == 0:
self.ui.status(_("at: %*d/%d\n") % (magnitude, i, total))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment