]> code.ossystems Code Review - openembedded-core.git/commitdiff
knotty: use the future division to prep for 3.x
authorChris Larson <chris_larson@mentor.com>
Thu, 10 Jun 2010 17:23:03 +0000 (10:23 -0700)
committerRichard Purdie <rpurdie@linux.intel.com>
Fri, 2 Jul 2010 14:41:36 +0000 (15:41 +0100)
(Bitbake rev: bd0edc19f691146e748b91255be7a5788a070de6)

Signed-off-by: Chris Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
bitbake/lib/bb/ui/knotty.py

index 1bc9ee67c83dcf4c331df5a028669553198d7f09..bfdcc5b495e08fbd490d55dfb5e1274c7199329e 100644 (file)
@@ -18,8 +18,9 @@
 # with this program; if not, write to the Free Software Foundation, Inc.,
 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 
-import os
+from __future__ import division
 
+import os
 import sys
 import itertools
 import xmlrpclib
@@ -122,7 +123,7 @@ def init(server, eventHandler):
                 x = event.sofar
                 y = event.total
                 if os.isatty(sys.stdout.fileno()):
-                    sys.stdout.write("\rNOTE: Handling BitBake files: %s (%04d/%04d) [%2d %%]" % ( parsespin.next(), x, y, x*100/y ) )
+                    sys.stdout.write("\rNOTE: Handling BitBake files: %s (%04d/%04d) [%2d %%]" % ( parsespin.next(), x, y, x*100//y ) )
                     sys.stdout.flush()
                 else:
                     if x == 1: