Skip to content

A feature-rich command-line audio/video downloader

remove unused imports

Philipp Hagemeisterb244b5c3f908
diff --git a/youtube_dl/compat.py b/youtube_dl/compat.py
index adf81e7ab4..9d33a8ec5f 100644
--- a/youtube_dl/compat.py
+++ b/youtube_dl/compat.py
@@ -306,7 +306,7 @@ def workaround_optparse_bug9161():
og = optparse.OptionGroup(op, 'foo')
try:
og.add_option('-t')
- except TypeError as te:
+ except TypeError:
real_add_option = optparse.OptionGroup.add_option
def _compat_add_option(self, *args, **kwargs):
diff --git a/youtube_dl/extractor/arte.py b/youtube_dl/extractor/arte.py
index aafc3a24df..3a57ce5278 100644
--- a/youtube_dl/extractor/arte.py
+++ b/youtube_dl/extractor/arte.py
@@ -5,7 +5,6 @@ import re
from .common import InfoExtractor
from ..utils import (
- ExtractorError,
find_xpath_attr,
unified_strdate,
get_element_by_id,
diff --git a/youtube_dl/extractor/comedycentral.py b/youtube_dl/extractor/comedycentral.py
index 49b978b4eb..f0da1844fa 100644
--- a/youtube_dl/extractor/comedycentral.py
+++ b/youtube_dl/extractor/comedycentral.py
@@ -2,7 +2,6 @@ from __future__ import unicode_literals
import re
-from .common import InfoExtractor
from .mtv import MTVServicesInfoExtractor
from ..utils import (
compat_str,
diff --git a/youtube_dl/extractor/goldenmoustache.py b/youtube_dl/extractor/goldenmoustache.py
index 7e13b131ba..10001d4d95 100644
--- a/youtube_dl/extractor/goldenmoustache.py
+++ b/youtube_dl/extractor/goldenmoustache.py
@@ -1,9 +1,7 @@
from __future__ import unicode_literals
-import re
from .common import InfoExtractor
from ..utils import (
- parse_duration,
int_or_none,
)