Telethon/telethon
Lonami Exo 219b4ecb77 Abstract away treating a file as a stream
Makes upload_file cleaner (context manager instead of try-finally)
and helps keep the logic "we may own this stream and need to close
it or not" separated.

It can be overengineered to allow nesting the same instance in
context managers and also provide implementations for synchronous
context managers but it adds quite a bit of unnecessary complexity
for the time being. YAGNI.
2020-09-14 16:20:44 +02:00
..
client Abstract away treating a file as a stream 2020-09-14 16:20:44 +02:00
crypto Fix macOS version parsing (again), bump v1.11.2 2020-02-21 20:37:24 +01:00
errors Fix errors found by new tests (#1389) 2020-02-14 18:35:42 +01:00
events Avoid explicitly passing the loop to asyncio 2020-07-25 18:39:35 +02:00
extensions Avoid explicitly passing the loop to asyncio 2020-07-25 18:39:35 +02:00
network Consider all reconnect attempts as retrying (#1557) 2020-09-13 09:43:01 +02:00
sessions Don't cache entities with min flag set, bump v1.10.2 2019-09-12 19:19:46 +02:00
tl Avoid explicitly passing the loop to asyncio 2020-07-25 18:39:35 +02:00
__init__.py Re-export the main modules and types from sync 2019-05-07 10:47:25 +02:00
entitycache.py Stop relying on __doc__ in EntityCache 2019-05-02 10:20:49 +02:00
helpers.py Abstract away treating a file as a stream 2020-09-14 16:20:44 +02:00
hints.py Fix Python 3.5.2 type hinting (#1177) 2019-06-28 21:26:08 +02:00
password.py Remove unused imports and variables 2020-07-04 13:29:43 +02:00
requestiter.py Avoid explicitly passing the loop to asyncio 2020-07-25 18:39:35 +02:00
statecache.py Remove unused imports and variables 2020-07-04 13:29:43 +02:00
sync.py Avoid unnecessary await in Conversation 2019-08-13 18:11:02 +02:00
utils.py Abstract away treating a file as a stream 2020-09-14 16:20:44 +02:00
version.py Update to v1.16.4 2020-08-24 12:54:56 +02:00