mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-09 05:19:41 +00:00
Many code-style improvements
This commit is contained in:
@@ -78,7 +78,8 @@ class TcpClient:
|
||||
if timeout:
|
||||
time_passed = datetime.now() - start_time
|
||||
if time_passed > timeout:
|
||||
raise TimeoutError('The read operation exceeded the timeout.')
|
||||
raise TimeoutError(
|
||||
'The read operation exceeded the timeout.')
|
||||
|
||||
# If everything went fine, return the read bytes
|
||||
return writer.get_bytes()
|
||||
|
Reference in New Issue
Block a user