mirror of
https://github.com/blackjack4494/yt-dlc.git
synced 2024-12-27 18:29:01 +00:00
Proper warning if xml.etree.ElementTree is not available
This commit is contained in:
parent
c23cec29a3
commit
afb5b55de6
1 changed files with 2 additions and 2 deletions
|
@ -66,8 +66,8 @@ except ImportError:
|
||||||
|
|
||||||
try:
|
try:
|
||||||
import xml.etree.ElementTree
|
import xml.etree.ElementTree
|
||||||
except ImportError: # Python<2.5
|
except ImportError: # Python<2.5: Not officially supported, but let it slip
|
||||||
pass # Not officially supported, but let it slip
|
warnings.warn('xml.etree.ElementTree support is missing. Consider upgrading to Python >= 2.5 if you get related errors.')
|
||||||
|
|
||||||
std_headers = {
|
std_headers = {
|
||||||
'User-Agent': 'Mozilla/5.0 (X11; Linux x86_64; rv:5.0.1) Gecko/20100101 Firefox/5.0.1',
|
'User-Agent': 'Mozilla/5.0 (X11; Linux x86_64; rv:5.0.1) Gecko/20100101 Firefox/5.0.1',
|
||||||
|
|
Loading…
Reference in a new issue