diff options
author | Chris Larson <chris_larson@mentor.com> | 2010-06-10 10:23:03 -0700 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2010-07-02 15:41:36 +0100 |
commit | 6092312acc05be5ebae91ca582936c7cb1a67619 (patch) | |
tree | 2c67d9f359155b9319ad0b15b7242e651585f1ae /bitbake/lib | |
parent | 8a9a4748c9cdf06f06e49abbee618550a4cdd796 (diff) | |
download | poky-6092312acc05be5ebae91ca582936c7cb1a67619.tar.gz |
knotty: use the future division to prep for 3.x
(Bitbake rev: bd0edc19f691146e748b91255be7a5788a070de6)
Signed-off-by: Chris Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'bitbake/lib')
-rw-r--r-- | bitbake/lib/bb/ui/knotty.py | 5 |
1 files changed, 3 insertions, 2 deletions
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 @@ | |||
18 | # with this program; if not, write to the Free Software Foundation, Inc., | 18 | # with this program; if not, write to the Free Software Foundation, Inc., |
19 | # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. | 19 | # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. |
20 | 20 | ||
21 | import os | 21 | from __future__ import division |
22 | 22 | ||
23 | import os | ||
23 | import sys | 24 | import sys |
24 | import itertools | 25 | import itertools |
25 | import xmlrpclib | 26 | import xmlrpclib |
@@ -122,7 +123,7 @@ def init(server, eventHandler): | |||
122 | x = event.sofar | 123 | x = event.sofar |
123 | y = event.total | 124 | y = event.total |
124 | if os.isatty(sys.stdout.fileno()): | 125 | if os.isatty(sys.stdout.fileno()): |
125 | sys.stdout.write("\rNOTE: Handling BitBake files: %s (%04d/%04d) [%2d %%]" % ( parsespin.next(), x, y, x*100/y ) ) | 126 | sys.stdout.write("\rNOTE: Handling BitBake files: %s (%04d/%04d) [%2d %%]" % ( parsespin.next(), x, y, x*100//y ) ) |
126 | sys.stdout.flush() | 127 | sys.stdout.flush() |
127 | else: | 128 | else: |
128 | if x == 1: | 129 | if x == 1: |