comparison scripts/partition_helper @ 589:fca61cd8fc33

Start working towards py3 port
author Neil Muller <drnlmuller@gmail.com>
date Wed, 11 Jan 2023 20:29:36 +0200
parents 20b424c5c1ef
children
comparison
equal deleted inserted replaced
588:636e28b2e43a 589:fca61cd8fc33
46 " ".join([" %dx%d" % (i, size) for (i, size) in partitions]))) 46 " ".join([" %dx%d" % (i, size) for (i, size) in partitions])))
47 47
48 height.extend([""] * 6) 48 height.extend([""] * 6)
49 height = [l.ljust(50) for l in height] 49 height = [l.ljust(50) for l in height]
50 pairs = zip(height, width) 50 pairs = zip(height, width)
51 print "\n".join(["%s %s" % p for p in pairs]) 51 print("\n".join(["%s %s" % p for p in pairs]))
52 52
53 def make_partition(height, width): 53 def make_partition(height, width):
54 sepheight, hparts = height 54 sepheight, hparts = height
55 pheight = int(partition(30, hparts, sepheight)) 55 pheight = int(partition(30, hparts, sepheight))
56 sepwidth, wparts = width 56 sepwidth, wparts = width