1
0
Fork 0
mirror of https://github.com/ytdl-org/youtube-dl.git synced 2024-12-22 16:57:40 +00:00

change to use compat urllib

This commit is contained in:
sprhawk 2017-12-26 16:28:47 +08:00
parent 447a5a710d
commit d2be5bb5af

View file

@ -3,14 +3,16 @@ from __future__ import unicode_literals
from .common import InfoExtractor
from urllib.request import Request
from urllib.parse import urlencode
from urllib import parse
import json
import random as rnd
from os import path
import re
from ..compat import (
compat_urllib_parse_urlencode as urlencode,
compat_urllib_request as Request,
compat_urlparse as parse,
)
from ..utils import (
js_to_json,
)