projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c23cec2
)
Proper warning if xml.etree.ElementTree is not available
author
Philipp Hagemeister
<phihag@phihag.de>
Thu, 15 Sep 2011 07:59:03 +0000
(09:59 +0200)
committer
Philipp Hagemeister
<phihag@phihag.de>
Thu, 15 Sep 2011 07:59:03 +0000
(09:59 +0200)
youtube-dl
patch
|
blob
|
history
diff --git
a/youtube-dl
b/youtube-dl
index 733e23105d3ee4093b391748440ac3af52b877a9..ae4917bbac2d75d475a760d0dd4756c28946ff3a 100755
(executable)
--- a/
youtube-dl
+++ b/
youtube-dl
@@
-66,8
+66,8
@@
except ImportError:
try:
import xml.etree.ElementTree
-except ImportError: # Python<2.5
- pass # Not officially supported, but let it slip
+except ImportError: # Python<2.5
: 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 = {
'User-Agent': 'Mozilla/5.0 (X11; Linux x86_64; rv:5.0.1) Gecko/20100101 Firefox/5.0.1',