util: fix bad variable use in bytecount introduced by f0f7f3fab315 stable
authorAugie Fackler <raf@durin42.com>
Mon, 21 May 2012 14:24:24 -0500
branchstable
changeset 16768 23a125545c3d
parent 16760 ac89a23ca814
child 16769 e406b9656da3
child 16771 2f3317d53d51
util: fix bad variable use in bytecount introduced by f0f7f3fab315
mercurial/util.py
--- 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()