Fix Python3 linting
This commit is contained in:
parent
5898a37997
commit
aa710d2d4e
2 changed files with 3 additions and 2 deletions
|
@ -1,3 +1,4 @@
|
|||
from __future__ import print_function
|
||||
import os
|
||||
import pickle
|
||||
|
||||
|
@ -37,5 +38,5 @@ def process_message(data):
|
|||
num = int(text.split()[1]) - 1
|
||||
tasks[channel].pop(num)
|
||||
if text == "show":
|
||||
print tasks
|
||||
print(tasks)
|
||||
pickle.dump(tasks, open(FILE, "wb"))
|
||||
|
|
|
@ -210,7 +210,7 @@ if __name__ == "__main__":
|
|||
directory
|
||||
))
|
||||
|
||||
config = yaml.load(file(args.config or 'rtmbot.conf', 'r'))
|
||||
config = yaml.load(open(args.config or 'rtmbot.conf', 'r'))
|
||||
debug = config["DEBUG"]
|
||||
bot = RtmBot(config["SLACK_TOKEN"])
|
||||
site_plugins = []
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue