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 os
|
||||||
import pickle
|
import pickle
|
||||||
|
|
||||||
|
@ -37,5 +38,5 @@ def process_message(data):
|
||||||
num = int(text.split()[1]) - 1
|
num = int(text.split()[1]) - 1
|
||||||
tasks[channel].pop(num)
|
tasks[channel].pop(num)
|
||||||
if text == "show":
|
if text == "show":
|
||||||
print tasks
|
print(tasks)
|
||||||
pickle.dump(tasks, open(FILE, "wb"))
|
pickle.dump(tasks, open(FILE, "wb"))
|
||||||
|
|
|
@ -210,7 +210,7 @@ if __name__ == "__main__":
|
||||||
directory
|
directory
|
||||||
))
|
))
|
||||||
|
|
||||||
config = yaml.load(file(args.config or 'rtmbot.conf', 'r'))
|
config = yaml.load(open(args.config or 'rtmbot.conf', 'r'))
|
||||||
debug = config["DEBUG"]
|
debug = config["DEBUG"]
|
||||||
bot = RtmBot(config["SLACK_TOKEN"])
|
bot = RtmBot(config["SLACK_TOKEN"])
|
||||||
site_plugins = []
|
site_plugins = []
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue