A feature-rich command-line audio/video downloader
Remove legacy code
Philipp Hagemeister9b14f51a3eaf
diff --git a/youtube_dl/FileDownloader.py b/youtube_dl/FileDownloader.pyindex be70ec7557..a7f3e10643 100644--- a/youtube_dl/FileDownloader.py+++ b/youtube_dl/FileDownloader.py@@ -448,11 +448,6 @@ class FileDownloader(object):if self.params.get('writeinfojson', False):infofn = filename + u'.info.json'self.report_writeinfojson(infofn)- try:- json.dump- except (NameError,AttributeError):- self.trouble(u'ERROR: No JSON encoder found. Update to Python 2.6+, setup a json module, or leave out --write-info-json.')- returntry:json_info_dict = dict((k, v) for k,v in info_dict.items() if not k in ['urlhandle'])write_json_file(json_info_dict, encodeFilename(infofn))