Micro code style improvement (#125)

This commit is contained in:
zed 2017-06-17 01:18:31 +03:00 committed by Lonami
parent 9130a94153
commit 74a851b5cc

View File

@ -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