aboutsummaryrefslogtreecommitdiffstats
path: root/wee_slack.py
diff options
context:
space:
mode:
Diffstat (limited to 'wee_slack.py')
-rw-r--r--wee_slack.py7
1 files changed, 3 insertions, 4 deletions
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