[extractor/common] Return unicode string from _match_id

This commit is contained in:
Sergey M․ 2017-06-09 00:40:03 +07:00
parent 7515830422
commit 1afd0b0da7
No known key found for this signature in database
GPG Key ID: 2C393E0F18A9236D

View File

@ -376,7 +376,7 @@ def _match_id(cls, url):
cls._VALID_URL_RE = re.compile(cls._VALID_URL) cls._VALID_URL_RE = re.compile(cls._VALID_URL)
m = cls._VALID_URL_RE.match(url) m = cls._VALID_URL_RE.match(url)
assert m assert m
return m.group('id') return compat_str(m.group('id'))
@classmethod @classmethod
def working(cls): def working(cls):