A feature-rich command-line audio/video downloader
[utils] remove check for val from find_xpath_attr
remitaminee07237f6403f
diff --git a/youtube_dl/utils.py b/youtube_dl/utils.pyindex 606977c587..210c47fce8 100644--- a/youtube_dl/utils.py+++ b/youtube_dl/utils.py@@ -160,8 +160,6 @@ if sys.version_info >= (2, 7):def find_xpath_attr(node, xpath, key, val=None):""" Find the xpath xpath[@key=val] """assert re.match(r'^[a-zA-Z_-]+$', key)- if val:- assert re.match(r'^[a-zA-Z0-9@\s:._-]*$', val)expr = xpath + ('[@%s]' % key if val is None else "[@%s='%s']" % (key, val))return node.find(expr)else: