Lock prettytable dep at v0.6

Specifically set the prettytable dependency so we can reliably
align data in table cells.

Change-Id: I1787c4100248b2a75405df690931110c76803413
This commit is contained in:
Brian Waldon 2012-06-11 09:57:00 -07:00
parent eb9b17532f
commit 7745b35b69
2 changed files with 3 additions and 3 deletions

View File

@ -126,7 +126,7 @@ def pretty_choice_list(l):
def print_list(objs, fields, formatters={}):
mixed_case_fields = ['serverId']
pt = prettytable.PrettyTable([f for f in fields], caching=False)
pt.aligns = ['l' for f in fields]
pt.align = 'l'
for o in objs:
row = []
@ -147,7 +147,7 @@ def print_list(objs, fields, formatters={}):
def print_dict(d, property="Property"):
pt = prettytable.PrettyTable([property, 'Value'], caching=False)
pt.aligns = ['l', 'l']
pt.align = 'l'
[pt.add_row(list(r)) for r in d.iteritems()]
print pt.get_string(sortby=property)

View File

@ -1,4 +1,4 @@
argparse
httplib2
prettytable
prettytable==0.6
simplejson