summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorPhilipp Hagemeister <[email protected]>2014-11-20 16:35:55 +0100
committerPhilipp Hagemeister <[email protected]>2014-11-20 16:36:13 +0100
commitb244b5c3f9082a307f0e1c4ee561594bd389aeb2 (patch)
tree473b0f70e904b0db842ab7133d0ffacda2160fa1
parentf42c190769869278cdd5f7ca62d2bd29e2a9d709 (diff)
downloadyoutube-dl-b244b5c3f9082a307f0e1c4ee561594bd389aeb2.tar.gz
youtube-dl-b244b5c3f9082a307f0e1c4ee561594bd389aeb2.zip
remove unused imports
-rw-r--r--youtube_dl/compat.py2
-rw-r--r--youtube_dl/extractor/arte.py1
-rw-r--r--youtube_dl/extractor/comedycentral.py1
-rw-r--r--youtube_dl/extractor/goldenmoustache.py2
4 files changed, 1 insertions, 5 deletions
diff --git a/youtube_dl/compat.py b/youtube_dl/compat.py
index adf81e7ab..9d33a8ec5 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 aafc3a24d..3a57ce527 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 49b978b4e..f0da1844f 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 7e13b131b..10001d4d9 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,
)