re-format code to pass flake8

This commit is contained in:
sprhawk 2017-12-26 16:38:51 +08:00
parent d2be5bb5af
commit 951043724f

View File

@ -5,7 +5,6 @@
import json import json
import random as rnd import random as rnd
from os import path
import re import re
from ..compat import ( from ..compat import (
@ -17,6 +16,7 @@
js_to_json, js_to_json,
) )
class WeiboIE(InfoExtractor): class WeiboIE(InfoExtractor):
_VALID_URL = r'https?://weibo\.com/[0-9]+/(?P<id>[a-zA-Z0-9]+)' _VALID_URL = r'https?://weibo\.com/[0-9]+/(?P<id>[a-zA-Z0-9]+)'
_TEST = { _TEST = {
@ -111,6 +111,7 @@ def _real_extract(self, url):
# TODO more properties (see youtube_dl/extractor/common.py) # TODO more properties (see youtube_dl/extractor/common.py)
} }
class WeiboMobileIE(InfoExtractor): class WeiboMobileIE(InfoExtractor):
_VALID_URL = r'https?://m.weibo.cn/status/(?P<id>[0-9]+)(\?.+)?' _VALID_URL = r'https?://m.weibo.cn/status/(?P<id>[0-9]+)(\?.+)?'
_TEST = { _TEST = {