From 60a842e141fd0710873f018e0908764f08132a77 Mon Sep 17 00:00:00 2001 From: Samuel Holland Date: Thu, 10 May 2018 15:50:16 -0500 Subject: Always use the print function from Python 3 Comments are updated as well as live code. --- wee_slack.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'wee_slack.py') diff --git a/wee_slack.py b/wee_slack.py index 1a3cba3..a612869 100644 --- a/wee_slack.py +++ b/wee_slack.py @@ -1,7 +1,6 @@ # -*- coding: utf-8 -*- - -from __future__ import unicode_literals +from __future__ import print_function, unicode_literals from collections import OrderedDict from functools import wraps @@ -4486,9 +4485,9 @@ def trace_calls(frame, event, arg): caller = frame.f_back caller_line_no = caller.f_lineno caller_filename = caller.f_code.co_filename - print >> f, 'Call to %s on line %s of %s from line %s of %s' % \ + print('Call to %s on line %s of %s from line %s of %s' % \ (func_name, func_line_no, func_filename, - caller_line_no, caller_filename) + caller_line_no, caller_filename), file=f) f.flush() return -- cgit