diff --git a/contrib/memory.py b/contrib/memory.py --- a/contrib/memory.py +++ b/contrib/memory.py @@ -25,8 +25,8 @@ def memusage(ui): key = parts[0][2:-1].lower() if key in result: result[key] = int(parts[1]) - ui.write_err(", ".join(["%s: %.1f MiB" % (key, value / 1024.0) - for key, value in result.iteritems()]) + "\n") + ui.write_err(", ".join(["%s: %.1f MiB" % (k, v / 1024.0) + for k, v in result.iteritems()]) + "\n") def extsetup(ui): atexit.register(memusage, ui)