diff options
author | Sergey M․ <dstftw@gmail.com> | 2015-11-14 06:07:44 +0600 |
---|---|---|
committer | Sergey M․ <dstftw@gmail.com> | 2015-11-14 06:07:44 +0600 |
commit | c7b959ce383040f1d507eef0e43041029583b307 (patch) | |
tree | 7c72e60a6c2ae9f74b4ff2a5e4a87aa3352d77bc /youtube_dl | |
parent | 75eac8961ee2ff004891ec57d5a2fec4f0b5574d (diff) |
[utils] Remove unused function
Diffstat (limited to 'youtube_dl')
-rw-r--r-- | youtube_dl/utils.py | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/youtube_dl/utils.py b/youtube_dl/utils.py index 65556d056..d39f313a4 100644 --- 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) -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""" |