X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=sfatables%2Fpretty.py;h=77e100441762bcabdb68f083cc6604a96764b688;hb=f27128bd33db08114f264c4028ae667c962b64c5;hp=9498aac1fd0976de6f71017a8143920f289d13a9;hpb=f21fb08570a1cf9b0c663e364b332eeebb669c59;p=sfa.git diff --git a/sfatables/pretty.py b/sfatables/pretty.py index 9498aac1..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,7 +19,7 @@ class Pretty: return def pprint (self): - print '\n' + print('\n') for rule in self.rows: cur_line = "" @@ -33,6 +33,6 @@ class Pretty: cur_line = cur_line + padding num = num + 1 - print cur_line + print(cur_line)