From 74a851b5cc261e85346c9e4bbbeeaf0950802a6c Mon Sep 17 00:00:00 2001 From: zed Date: Sat, 17 Jun 2017 01:18:31 +0300 Subject: [PATCH] Micro code style improvement (#125) --- telethon_examples/interactive_telegram_client.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/telethon_examples/interactive_telegram_client.py b/telethon_examples/interactive_telegram_client.py index d73a34e1..f4c6ba8a 100644 --- a/telethon_examples/interactive_telegram_client.py +++ b/telethon_examples/interactive_telegram_client.py @@ -97,8 +97,7 @@ class InteractiveTelegramClient(TelegramClient): print_title('Dialogs window') # Display them so the user can choose - for i, entity in enumerate(entities): - i += 1 # 1-based index + for i, entity in enumerate(entities, start=1): sprint('{}. {}'.format(i, get_display_name(entity))) # Let the user decide who they want to talk to