Use pretty formatting
This commit is contained in:
parent
68cc2abebb
commit
7ba3841a67
1 changed files with 2 additions and 2 deletions
4
tbr.py
4
tbr.py
|
|
@ -24,7 +24,7 @@
|
||||||
|
|
||||||
import json
|
import json
|
||||||
import pprint
|
import pprint
|
||||||
pp = pprint.PrettyPrinter()
|
from pprint import pformat
|
||||||
|
|
||||||
from telegram.ext import Updater, CommandHandler, MessageHandler, Filters
|
from telegram.ext import Updater, CommandHandler, MessageHandler, Filters
|
||||||
import logging
|
import logging
|
||||||
|
|
@ -69,7 +69,7 @@ def route(bot, update, args):
|
||||||
|
|
||||||
|
|
||||||
def print_routes(bot, update):
|
def print_routes(bot, update):
|
||||||
update.message.reply_text(repr(routingdict))
|
update.message.reply_text(pformat(routingdict))
|
||||||
|
|
||||||
|
|
||||||
def main(token_file):
|
def main(token_file):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue