[test] add unit tests for extractor module functions
This commit is contained in:
@@ -107,7 +107,7 @@ def find(url):
|
||||
|
||||
def add(klass):
|
||||
"""Add 'klass' to the list of available extractors"""
|
||||
for pattern in klass:
|
||||
for pattern in klass.pattern:
|
||||
_cache.append((re.compile(pattern), klass))
|
||||
|
||||
|
||||
|
||||
@@ -6,4 +6,4 @@
|
||||
# it under the terms of the GNU General Public License version 2 as
|
||||
# published by the Free Software Foundation.
|
||||
|
||||
__version__ = "1.3.2"
|
||||
__version__ = "1.3.3-dev"
|
||||
|
||||
Reference in New Issue
Block a user