projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
75eac89
)
[utils] Remove unused function
author
Sergey M․
<dstftw@gmail.com>
Sat, 14 Nov 2015 00:07:44 +0000
(06:07 +0600)
committer
Sergey M․
<dstftw@gmail.com>
Sat, 14 Nov 2015 00:07:44 +0000
(06:07 +0600)
youtube_dl/utils.py
patch
|
blob
|
history
diff --git
a/youtube_dl/utils.py
b/youtube_dl/utils.py
index 65556d056a7edfe12b94e82d0f55baa93360aa70..d39f313a41802f38f91418e12cc89dcd798b0286 100644
(file)
--- a/
youtube_dl/utils.py
+++ b/
youtube_dl/utils.py
@@
-259,15
+259,6
@@
def get_element_by_attribute(attribute, value, html):
return unescapeHTML(res)
return unescapeHTML(res)
-def extract_attributes(attributes_str, attributes_regex=r'(?s)\s*([^\s=]+)\s*=\s*["\']([^"\']+)["\']'):
- attributes = re.findall(attributes_regex, attributes_str)
- attributes_dict = {}
- if attributes:
- for (attribute_name, attribute_value) in attributes:
- attributes_dict[attribute_name] = attribute_value
- return attributes_dict
-
-
def clean_html(html):
"""Clean an HTML snippet into a readable string"""
def clean_html(html):
"""Clean an HTML snippet into a readable string"""