X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=sfatables%2Fpretty.py;h=77e100441762bcabdb68f083cc6604a96764b688;hb=4a9e6751f9f396f463932133b9d62fc925a99ef6;hp=9a896ee3d7c74a4064fbced93c60ad2b85699858;hpb=2e0fbfbdfd45bf70b92d8fa3866bcbbd2f49fe64;p=sfa.git diff --git a/sfatables/pretty.py b/sfatables/pretty.py index 9a896ee3..77e10044 100644 --- a/sfatables/pretty.py +++ b/sfatables/pretty.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python3 class Pretty: rows = [] @@ -19,14 +19,12 @@ class Pretty: return def pprint (self): - print '\n' + print('\n') for rule in self.rows: cur_line = "" num = 0 - import pdb - pdb.set_trace() for r in rule: cur_line = cur_line + "%s "%r if (self.column_width[num] > len(r)): @@ -35,6 +33,6 @@ class Pretty: cur_line = cur_line + padding num = num + 1 - print cur_line + print(cur_line)