[varLib] Use string.ljust()

This commit is contained in:
Behdad Esfahbod 2016-08-15 16:16:03 -07:00
parent 2e350268a2
commit 938129b802

View File

@ -23,11 +23,9 @@ def main(args=None):
loc = {}
for arg in locargs:
tag,valstr = arg.split('=')
while len(tag) < 4:
tag += ' '
tag,val = arg.split('=')
assert len(tag) <= 4
loc[tag] = float(valstr)
loc[tag.ljust(4)] = float(val)
print("Location:", loc)
print("Loading GX font")