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>
This commit is contained in:
parent
8a9a4748c9
commit
6092312acc
|
@ -18,8 +18,9 @@
|
||||||
# with this program; if not, write to the Free Software Foundation, Inc.,
|
# with this program; if not, write to the Free Software Foundation, Inc.,
|
||||||
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
|
|
||||||
import os
|
from __future__ import division
|
||||||
|
|
||||||
|
import os
|
||||||
import sys
|
import sys
|
||||||
import itertools
|
import itertools
|
||||||
import xmlrpclib
|
import xmlrpclib
|
||||||
|
@ -122,7 +123,7 @@ def init(server, eventHandler):
|
||||||
x = event.sofar
|
x = event.sofar
|
||||||
y = event.total
|
y = event.total
|
||||||
if os.isatty(sys.stdout.fileno()):
|
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()
|
sys.stdout.flush()
|
||||||
else:
|
else:
|
||||||
if x == 1:
|
if x == 1:
|
||||||
|
|
Loading…
Reference in New Issue