[Zope3-checkins] CVS: Zope3/src/zope/app - size.py:1.8

Fred L. Drake, Jr. fred at zope.com
Tue Aug 19 11:57:18 EDT 2003


Update of /cvs-repository/Zope3/src/zope/app
In directory cvs.zope.org:/tmp/cvs-serv28018

Modified Files:
	size.py 
Log Message:
clean up whitespace


=== Zope3/src/zope/app/size.py 1.7 => 1.8 ===
--- Zope3/src/zope/app/size.py:1.7	Wed Aug  6 10:45:01 2003
+++ Zope3/src/zope/app/size.py	Tue Aug 19 10:57:13 2003
@@ -46,13 +46,12 @@
 def byteDisplay(size):
     if size == 0:
         return _('0 KB')
-    if size < 1024:
+    if size <= 1024:
         return _('1 KB')
     if size > 1048576:
         size_str = _('${size} MB')
-        size_str.mapping = {'size': '%0.02f' %(size / 1048576.0)}
+        size_str.mapping = {'size': '%0.02f' % (size / 1048576.0)}
         return size_str
     size_str = _('${size} KB')
-    size_str.mapping = {'size': '%d' %(size / 1024.0)}
+    size_str.mapping = {'size': '%d' % (size / 1024.0)}
     return size_str
-




More information about the Zope3-Checkins mailing list