From: Chris Larson Date: Thu, 10 Jun 2010 17:23:03 +0000 (-0700) Subject: knotty: use the future division to prep for 3.x X-Git-Tag: 2011-1~5473 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=6092312acc05be5ebae91ca582936c7cb1a67619;p=openembedded-core.git knotty: use the future division to prep for 3.x (Bitbake rev: bd0edc19f691146e748b91255be7a5788a070de6) Signed-off-by: Chris Larson Signed-off-by: Richard Purdie --- diff --git a/bitbake/lib/bb/ui/knotty.py b/bitbake/lib/bb/ui/knotty.py index 1bc9ee67c8..bfdcc5b495 100644 --- a/bitbake/lib/bb/ui/knotty.py +++ b/bitbake/lib/bb/ui/knotty.py @@ -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: