Skip to content

Commit aa710d2

Browse files
author
Jeff Ammons
committed
Fix Python3 linting
1 parent 5898a37 commit aa710d2

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

doc/example-plugins/todo.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
from __future__ import print_function
12
import os
23
import pickle
34

@@ -37,5 +38,5 @@ def process_message(data):
3738
num = int(text.split()[1]) - 1
3839
tasks[channel].pop(num)
3940
if text == "show":
40-
print tasks
41+
print(tasks)
4142
pickle.dump(tasks, open(FILE, "wb"))

rtmbot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ def parse_args():
210210
directory
211211
))
212212

213-
config = yaml.load(file(args.config or 'rtmbot.conf', 'r'))
213+
config = yaml.load(open(args.config or 'rtmbot.conf', 'r'))
214214
debug = config["DEBUG"]
215215
bot = RtmBot(config["SLACK_TOKEN"])
216216
site_plugins = []

0 commit comments

Comments
 (0)