X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=youtube_dl%2Fcompat.py;h=f9529210dd955932eca837aa7022696470c557ed;hb=2ddcd88129e633ead8c5faee6c930b66dddb1b32;hp=b2bf149ef63ffb1c31bfb02f976f5cce2dbadad3;hpb=376817c6d48b0915502e687655e266d80cb45a7a;p=youtube-dl diff --git a/youtube_dl/compat.py b/youtube_dl/compat.py index b2bf149ef..f9529210d 100644 --- a/youtube_dl/compat.py +++ b/youtube_dl/compat.py @@ -46,11 +46,6 @@ try: except ImportError: # Python 2 import htmlentitydefs as compat_html_entities -try: - import html.parser as compat_html_parser -except ImportError: # Python 2 - import HTMLParser as compat_html_parser - try: import http.client as compat_http_client except ImportError: # Python 2 @@ -389,7 +384,7 @@ else: stdout=subprocess.PIPE, stderr=subprocess.PIPE) out, err = sp.communicate() lines, columns = map(int, out.split()) - except: + except Exception: pass return _terminal_size(columns, lines) @@ -404,7 +399,6 @@ __all__ = [ 'compat_getenv', 'compat_getpass', 'compat_html_entities', - 'compat_html_parser', 'compat_http_client', 'compat_http_server', 'compat_kwargs',