mercurial/util.py
changeset 16769 e406b9656da3
parent 16705 c2d9ef43ff6c
parent 16768 23a125545c3d
child 16803 107a3270a24a
--- a/mercurial/util.py	Fri May 18 13:50:02 2012 -0300
+++ b/mercurial/util.py	Mon May 21 17:35:28 2012 -0500
@@ -1186,7 +1186,7 @@
     for multiplier, divisor, format in _byteunits:
         if nbytes >= divisor * multiplier:
             return format % (nbytes / float(divisor))
-    return units[-1][2] % nbytes
+    return _byteunits[-1][2] % nbytes
 
 def uirepr(s):
     # Avoid double backslash in Windows path repr()