mirror of https://github.com/yt-dlp/yt-dlp
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
4bd7d9d4ae
1. ProxyError now inherits from socket.error instead of IOError The only functions socks.py overrides are connect and connect_ex. In Python 2.x and Python <= 3.2, socket functions raises socket.error. In newer Python versions, those functions raises OSError instead. The name socket.error is preserved as an alias of OSError for backward compability. To keep socks.py compatible with Python's standard library, it should raise the same exception as raw sockets. See PEP 3151 (https://www.python.org/dev/peps/pep-3151/) for more information about the change in Python 3.3. 2. Raise EOFError instead of IOError when the socket receives less data than it expects There's no common convention, but both ftplib and telnetlib raises EOFError for similar situations. socks.py follows them. Closes #11355 In #11355, only Python 2 is affected. In Python 3, both socket.error and IOError are alias of OSError, so AbstractHTTPHandler.do_open correctly catches the error and thus InfoExtractor._is_valid_url works fine. |
8 years ago | |
---|---|---|
.. | ||
downloader | 8 years ago | |
extractor | 8 years ago | |
postprocessor | 8 years ago | |
YoutubeDL.py | 8 years ago | |
__init__.py | 8 years ago | |
__main__.py | 9 years ago | |
aes.py | 8 years ago | |
cache.py | ||
compat.py | 8 years ago | |
jsinterp.py | 8 years ago | |
options.py | 8 years ago | |
socks.py | 8 years ago | |
swfinterp.py | 8 years ago | |
update.py | 9 years ago | |
utils.py | 8 years ago | |
version.py | 8 years ago |