aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl
diff options
context:
space:
mode:
authorremitamine <remitamine@gmail.com>2016-03-02 21:40:21 +0100
committerremitamine <remitamine@gmail.com>2016-03-02 21:40:21 +0100
commite07237f6403fe2c18212b36e27bb630dd8e5cef1 (patch)
tree6553ae2ec479e3d712478c75f2f14207e5380a21 /youtube_dl
parent8c5a9944246d459f0eac876ae358dedb32fc890a (diff)
[utils] remove check for val from find_xpath_attr
Diffstat (limited to 'youtube_dl')
-rw-r--r--youtube_dl/utils.py2
1 files changed, 0 insertions, 2 deletions
diff --git a/youtube_dl/utils.py b/youtube_dl/utils.py
index 606977c58..210c47fce 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: