aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor/weibo.py
diff options
context:
space:
mode:
authorsprhawk <465558+sprhawk@users.noreply.github.com>2017-12-26 16:28:47 +0800
committersprhawk <465558+sprhawk@users.noreply.github.com>2017-12-26 16:28:47 +0800
commitd2be5bb5af7a1d7108b272315265e103a4358b28 (patch)
tree3baee93488dd008459bf573075f6688abbbbd5ac /youtube_dl/extractor/weibo.py
parent447a5a710dcd05741ea8cefa2fe98b333534e07d (diff)
change to use compat urllib
Diffstat (limited to 'youtube_dl/extractor/weibo.py')
-rw-r--r--youtube_dl/extractor/weibo.py8
1 files changed, 5 insertions, 3 deletions
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,
)