mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2024-11-25 10:53:44 +03:00
219b4ecb77
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. |
||
---|---|---|
.. | ||
client | ||
crypto | ||
errors | ||
events | ||
extensions | ||
network | ||
sessions | ||
tl | ||
__init__.py | ||
entitycache.py | ||
helpers.py | ||
hints.py | ||
password.py | ||
requestiter.py | ||
statecache.py | ||
sync.py | ||
utils.py | ||
version.py |