From: sprhawk <465558+sprhawk@users.noreply.github.com> Date: Tue, 26 Dec 2017 08:28:47 +0000 (+0800) Subject: change to use compat urllib X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=commitdiff_plain;h=d2be5bb5af7a1d7108b272315265e103a4358b28;p=youtube-dl change to use compat urllib --- diff --git a/youtube_dl/extractor/weibo.py b/youtube_dl/extractor/weibo.py index eda0fa63d..6a4e0a4cb 100644 --- a/youtube_dl/extractor/weibo.py +++ b/youtube_dl/extractor/weibo.py @@ -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, )