浏览代码

[utils] Remove unused import

Philipp Hagemeister 10 年之前
父节点
当前提交
4164f0117e
共有 2 个文件被更改,包括 4 次插入4 次删除
  1. 4 3
      youtube_dl/extractor/grooveshark.py
  2. 0 1
      youtube_dl/utils.py

+ 4 - 3
youtube_dl/extractor/grooveshark.py

@@ -8,12 +8,13 @@ import re
 
 
 
 
 from .common import InfoExtractor
 from .common import InfoExtractor
-from ..utils import ExtractorError, compat_urllib_request, compat_html_parser
-
-from ..utils import (
+from ..compat import (
+    compat_html_parser,
     compat_urllib_parse,
     compat_urllib_parse,
+    compat_urllib_request,
     compat_urlparse,
     compat_urlparse,
 )
 )
+from ..utils import ExtractorError
 
 
 
 
 class GroovesharkHtmlParser(compat_html_parser.HTMLParser):
 class GroovesharkHtmlParser(compat_html_parser.HTMLParser):

+ 0 - 1
youtube_dl/utils.py

@@ -34,7 +34,6 @@ from .compat import (
     compat_chr,
     compat_chr,
     compat_getenv,
     compat_getenv,
     compat_html_entities,
     compat_html_entities,
-    compat_html_parser,
     compat_parse_qs,
     compat_parse_qs,
     compat_str,
     compat_str,
     compat_urllib_error,
     compat_urllib_error,