mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-02-09 16:10:51 +03:00
Tiny style fixes
This commit is contained in:
parent
c8f16a4e89
commit
fc2977fc0d
|
@ -75,12 +75,10 @@ def strip_text(text, entities):
|
|||
def retry_range(retries):
|
||||
"""
|
||||
Generates an integer sequence starting from 1. If `retries` is
|
||||
negative or ``None`` then sequence is infinite, otherwise it will
|
||||
end at `retries + 1`.
|
||||
not a zero or a positive integer value, the sequence will be
|
||||
infinite, otherwise it will end at `retries + 1`.
|
||||
"""
|
||||
yield 1
|
||||
if retries is None:
|
||||
retries = -1
|
||||
attempt = 0
|
||||
while attempt != retries:
|
||||
attempt += 1
|
||||
|
|
Loading…
Reference in New Issue
Block a user