diff options
author | Samuel Holland <samuel@sholland.org> | 2018-05-10 15:50:16 -0500 |
---|---|---|
committer | Trygve Aaberge <trygveaa@gmail.com> | 2019-04-08 15:11:57 +0200 |
commit | 60a842e141fd0710873f018e0908764f08132a77 (patch) | |
tree | 05457e7f7507e615bf6b50ff6c53894c3bc1b2d5 /wee_slack.py | |
parent | 3639342e26f7e890ae600e74c7661ad84abb5700 (diff) | |
download | wee-slack-60a842e141fd0710873f018e0908764f08132a77.tar.gz |
Always use the print function from Python 3
Comments are updated as well as live code.
Diffstat (limited to 'wee_slack.py')
-rw-r--r-- | wee_slack.py | 7 |
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 |