mirror of
https://git.yoctoproject.org/poky
synced 2026-06-10 16:10:04 +00:00
scripts: python3: Use print function
Used print function instead of print statement to make the code work in python 3. (From OE-Core rev: 80fecc44761fa38ccf2e4dc6897b9f1f0c9c1ed0) Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
79be110c1f
commit
2e388048b6
@@ -71,7 +71,7 @@ class Record:
|
||||
total = 0
|
||||
if self.size <= minsize:
|
||||
return 0
|
||||
print "%10d %s" % (self.size, self.path)
|
||||
print("%10d %s" % (self.size, self.path))
|
||||
for r in self.records:
|
||||
total += r.show(minsize)
|
||||
if len(self.records) == 0:
|
||||
@@ -85,8 +85,8 @@ def main():
|
||||
minsize = int(sys.argv[1])
|
||||
rootfs = Record.create(".")
|
||||
total = rootfs.show(minsize)
|
||||
print "Displayed %d/%d bytes (%.2f%%)" % \
|
||||
(total, rootfs.size, 100 * float(total) / rootfs.size)
|
||||
print("Displayed %d/%d bytes (%.2f%%)" % \
|
||||
(total, rootfs.size, 100 * float(total) / rootfs.size))
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
||||
Reference in New Issue
Block a user