diff mercurial/util.py @ 16768:23a125545c3d stable

util: fix bad variable use in bytecount introduced by f0f7f3fab315
author Augie Fackler <raf@durin42.com>
date Mon, 21 May 2012 14:24:24 -0500
parents f0f7f3fab315
children e406b9656da3
line wrap: on
line diff
--- a/mercurial/util.py	Mon May 21 16:32:50 2012 -0500
+++ b/mercurial/util.py	Mon May 21 14:24:24 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()