remove unused imports
authorPhilipp Hagemeister <phihag@phihag.de>
Thu, 20 Nov 2014 15:35:55 +0000 (16:35 +0100)
committerPhilipp Hagemeister <phihag@phihag.de>
Thu, 20 Nov 2014 15:36:13 +0000 (16:36 +0100)
youtube_dl/compat.py
youtube_dl/extractor/arte.py
youtube_dl/extractor/comedycentral.py
youtube_dl/extractor/goldenmoustache.py

index adf81e7ab4f9bf8d3a8c5365d3c9f9c65b67c7da..9d33a8ec5fbd80a75a5d382e8621f6dc616c7aa0 100644 (file)
@@ -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):
index aafc3a24dfe56b47a6d4a1c4722b92b294e39f7b..3a57ce52785a7d4950ec694b71fb9bdff69d1e55 100644 (file)
@@ -5,7 +5,6 @@ import re
 
 from .common import InfoExtractor
 from ..utils import (
-    ExtractorError,
     find_xpath_attr,
     unified_strdate,
     get_element_by_id,
index 49b978b4eb0f17555f20e6c27f16880371610720..f0da1844fa5274be4d3e36d36ecba3b99669e552 100644 (file)
@@ -2,7 +2,6 @@ from __future__ import unicode_literals
 
 import re
 
-from .common import InfoExtractor
 from .mtv import MTVServicesInfoExtractor
 from ..utils import (
     compat_str,
index 7e13b131ba7702bc0db40781a0e9942f721afeee..10001d4d95f9895c5e965f88c967aa87f63ff7f2 100644 (file)
@@ -1,9 +1,7 @@
 from __future__ import unicode_literals
 
-import re
 from .common import InfoExtractor
 from ..utils import (
-    parse_duration,
     int_or_none,
 )