From 895990cbd5007876709b93e6d3db2b6c069382ea Mon Sep 17 00:00:00 2001 From: Gary Oberbrunner Date: Sun, 22 Sep 2013 13:08:12 -0400 Subject: Result of raw 2to3 run (2to3-2.7); checkpoint for python3 conversion. --- www/gen_sched_table.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'www') diff --git a/www/gen_sched_table.py b/www/gen_sched_table.py index e67f0d74..9ac8acdc 100755 --- a/www/gen_sched_table.py +++ b/www/gen_sched_table.py @@ -6,13 +6,13 @@ import datetime months = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'] -print '' +print('
') def row(*cells, **kw): td = kw.get('tr','td') - print ' ' + print(' ') for cell in cells: - print ' <%s>%s' % (td,cell,td) - print ' ' + print(' <%s>%s' % (td,cell,td)) + print(' ') row('Estimated date', 'Type', 'Comments', tr = 'th') if len(sys.argv) > 1: @@ -30,7 +30,7 @@ for line in f: incr,type,desc = line[1:].strip().split(None,2) now = now + datetime.timedelta(int(incr)) else: - print 'dunna understand code', line[0] + print('dunna understand code', line[0]) sys.exit(1) #name = current + '.d' + str(now).replace('-','') date = '%s-%s-%s' % (now.day,months[now.month-1],now.year) @@ -41,7 +41,7 @@ for line in f: else: category = current = type row(date, category, desc) -print '
' +print('') # Local Variables: # tab-width:4 -- cgit v1.2.1