X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=sfatables%2Fpretty.py;h=77e100441762bcabdb68f083cc6604a96764b688;hb=4a9e6751f9f396f463932133b9d62fc925a99ef6;hp=87e74fbd039d822c49b8e7a7ae7cbedad6376410;hpb=31cc4fa991896f000abb106916662923f37bc3a6;p=sfa.git diff --git a/sfatables/pretty.py b/sfatables/pretty.py index 87e74fbd..77e10044 100644 --- a/sfatables/pretty.py +++ b/sfatables/pretty.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python2 +#!/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)