changeset 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 ac89a23ca814
children e406b9656da3 2f3317d53d51
files mercurial/util.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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()