change to use compat urllib
This commit is contained in:
parent
447a5a710d
commit
d2be5bb5af
@ -3,14 +3,16 @@ from __future__ import unicode_literals
|
|||||||
|
|
||||||
from .common import InfoExtractor
|
from .common import InfoExtractor
|
||||||
|
|
||||||
from urllib.request import Request
|
|
||||||
from urllib.parse import urlencode
|
|
||||||
from urllib import parse
|
|
||||||
import json
|
import json
|
||||||
import random as rnd
|
import random as rnd
|
||||||
from os import path
|
from os import path
|
||||||
import re
|
import re
|
||||||
|
|
||||||
|
from ..compat import (
|
||||||
|
compat_urllib_parse_urlencode as urlencode,
|
||||||
|
compat_urllib_request as Request,
|
||||||
|
compat_urlparse as parse,
|
||||||
|
)
|
||||||
from ..utils import (
|
from ..utils import (
|
||||||
js_to_json,
|
js_to_json,
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user