diff options
author | Chris Larson <chris_larson@mentor.com> | 2010-06-10 10:23:03 -0700 |
---|---|---|
committer | Chris Larson <chris_larson@mentor.com> | 2010-06-10 10:54:40 -0700 |
commit | bd0edc19f691146e748b91255be7a5788a070de6 (patch) | |
tree | 704be17113909c56b46d4c41b4c42aed15ce9170 /lib/bb/ui/knotty.py | |
parent | ef8475796fbab4f76a72bbc106da4c35e3afe2e1 (diff) | |
download | bitbake-bd0edc19f691146e748b91255be7a5788a070de6.tar.gz |
knotty: use the future division to prep for 3.x
Signed-off-by: Chris Larson <chris_larson@mentor.com>
Diffstat (limited to 'lib/bb/ui/knotty.py')
-rw-r--r-- | lib/bb/ui/knotty.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/bb/ui/knotty.py b/lib/bb/ui/knotty.py index 1bc9ee67c..bfdcc5b49 100644 --- a/lib/bb/ui/knotty.py +++ b/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: |