From 68cc2abebbf3c1c75007bce35d007d290f21d2c9 Mon Sep 17 00:00:00 2001 From: Jyri Eerola Date: Sat, 10 Jun 2017 20:28:07 +0300 Subject: [PATCH] Remove old globals --- tbr.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/tbr.py b/tbr.py index 5dc04fa..e4f0679 100644 --- a/tbr.py +++ b/tbr.py @@ -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)