diff options
author | sprhawk <465558+sprhawk@users.noreply.github.com> | 2017-12-26 16:28:47 +0800 |
---|---|---|
committer | sprhawk <465558+sprhawk@users.noreply.github.com> | 2017-12-26 16:28:47 +0800 |
commit | d2be5bb5af7a1d7108b272315265e103a4358b28 (patch) | |
tree | 3baee93488dd008459bf573075f6688abbbbd5ac | |
parent | 447a5a710dcd05741ea8cefa2fe98b333534e07d (diff) | |
download | youtube-dl-d2be5bb5af7a1d7108b272315265e103a4358b28.zip youtube-dl-d2be5bb5af7a1d7108b272315265e103a4358b28.tar.gz youtube-dl-d2be5bb5af7a1d7108b272315265e103a4358b28.tar.bz2 |
change to use compat urllib
-rw-r--r-- | youtube_dl/extractor/weibo.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/youtube_dl/extractor/weibo.py b/youtube_dl/extractor/weibo.py index eda0fa6..6a4e0a4 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, ) |