Navigation Menu

Skip to content

Commit

Permalink
Merge pull request #48 from megansquire/patch-1
Browse files Browse the repository at this point in the history
Update mailboxes__threading.py - thanks megansquire for the fix. I missed this file when I did my previous batch of fixups on PrettyTable since this file doesn't appear in the text of the book.
  • Loading branch information
ptwobrussell committed Apr 24, 2013
2 parents 0d092b6 + 9ef1dc0 commit f486438
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions python_code/mailboxes__threading.py
Expand Up @@ -56,10 +56,10 @@
key=lambda x: x[1])

fields = ['Thread Id', 'Thread Length']
pt = PrettyTable(fields=fields)
[pt.set_field_align(f, 'l') for f in fields]
pt = PrettyTable(field_names = fields)
pt.align='l'

for stat in stats:
pt.add_row(stat)

pt.printt()
print pt.get_string()

0 comments on commit f486438

Please sign in to comment.