We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5898a37 commit aa710d2Copy full SHA for aa710d2
doc/example-plugins/todo.py
@@ -1,3 +1,4 @@
1
+from __future__ import print_function
2
import os
3
import pickle
4
@@ -37,5 +38,5 @@ def process_message(data):
37
38
num = int(text.split()[1]) - 1
39
tasks[channel].pop(num)
40
if text == "show":
- print tasks
41
+ print(tasks)
42
pickle.dump(tasks, open(FILE, "wb"))
rtmbot.py
@@ -210,7 +210,7 @@ def parse_args():
210
directory
211
))
212
213
- config = yaml.load(file(args.config or 'rtmbot.conf', 'r'))
+ config = yaml.load(open(args.config or 'rtmbot.conf', 'r'))
214
debug = config["DEBUG"]
215
bot = RtmBot(config["SLACK_TOKEN"])
216
site_plugins = []
0 commit comments