Remove old globals

This commit is contained in:
Jyri Eerola 2017-06-10 20:28:07 +03:00
parent 5f122e70d3
commit 68cc2abebb

3
tbr.py
View file

@ -60,7 +60,6 @@ def error(bot, update, error):
routingdict = dict()
def route(bot, update, args):
#global routingdict
chat_id = update.message.chat_id
source_id = ' '.join(args)
if source_id not in routingdict:
@ -70,7 +69,6 @@ def route(bot, update, args):
def print_routes(bot, update):
#global routingdict
update.message.reply_text(repr(routingdict))
@ -102,7 +100,6 @@ def main(token_file):
updater.start_polling()
# PA-PA
#global routingdict
for line in sys.stdin: # CTRL+D, eli EOF, lopettaa
print('Line: {}'.format(line))
parsed = json.loads(line)