##// END OF EJS Templates
memory: avoid shadowing variables inside a list comprehension
Augie Fackler -
r30386:ff896733 default
parent child Browse files
Show More
@@ -25,8 +25,8 b' def memusage(ui):'
25 key = parts[0][2:-1].lower()
25 key = parts[0][2:-1].lower()
26 if key in result:
26 if key in result:
27 result[key] = int(parts[1])
27 result[key] = int(parts[1])
28 ui.write_err(", ".join(["%s: %.1f MiB" % (key, value / 1024.0)
28 ui.write_err(", ".join(["%s: %.1f MiB" % (k, v / 1024.0)
29 for key, value in result.iteritems()]) + "\n")
29 for k, v in result.iteritems()]) + "\n")
30
30
31 def extsetup(ui):
31 def extsetup(ui):
32 atexit.register(memusage, ui)
32 atexit.register(memusage, ui)
General Comments 0
You need to be logged in to leave comments. Login now