projects
/
youtube-dl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove code that was only used by the Grooveshark extractor
[youtube-dl]
/
youtube_dl
/
compat.py
diff --git
a/youtube_dl/compat.py
b/youtube_dl/compat.py
index b2bf149ef63ffb1c31bfb02f976f5cce2dbadad3..f9529210dd955932eca837aa7022696470c557ed 100644
(file)
--- 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
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
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())
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)
pass
return _terminal_size(columns, lines)
@@
-404,7
+399,6
@@
__all__ = [
'compat_getenv',
'compat_getpass',
'compat_html_entities',
'compat_getenv',
'compat_getpass',
'compat_html_entities',
- 'compat_html_parser',
'compat_http_client',
'compat_http_server',
'compat_kwargs',
'compat_http_client',
'compat_http_server',
'compat_kwargs',