From d6d35ff6415f743397d04fb3d75d610d1a833dd6 Mon Sep 17 00:00:00 2001 From: Markus Krogh Date: Sat, 15 Jul 2017 00:06:53 +0200 Subject: python3 support --- maconomy_hours.py | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'maconomy_hours.py') diff --git a/maconomy_hours.py b/maconomy_hours.py index 61fa6ee..608d502 100644 --- a/maconomy_hours.py +++ b/maconomy_hours.py @@ -37,10 +37,10 @@ def normal(timesheets, config, mailer): if to and to.strip(): mailer.send(to, subject, mail) else: - print u"No email for: {}".format(timesheet.employee) + print(u"No email for: {}".format(timesheet.employee)) else: - print subject - print mail + print(subject) + print(mail) def manager(timesheets, config, mailer): view = ManagerEmailView(config) @@ -56,9 +56,9 @@ def manager(timesheets, config, mailer): if mailer: mailer.send(to, subject, mail) else: - print "TO: {}".format(to) - print subject - print mail + print("TO: {}".format(to)) + print(subject) + print(mail) def ceo(timesheets, config, mailer): @@ -71,14 +71,14 @@ def ceo(timesheets, config, mailer): if mailer: mailer.send(to, subject, mail) else: - print mail + print(mail) def summary(timesheets): affected = [t for t in timesheets if not t.is_done()] for timesheet in affected: - print timesheet.status_summary() - print "Number of overdue timesheets: {}".format(len(affected)) + print(timesheet.status_summary()) + print("Number of overdue timesheets: {}".format(len(affected))) if __name__ == '__main__': -- cgit v1.1