Remove old globals
This commit is contained in:
parent
5f122e70d3
commit
68cc2abebb
1 changed files with 0 additions and 3 deletions
3
tbr.py
3
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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue