aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilipp Hagemeister <phihag@phihag.de>2012-12-20 13:14:27 +0100
committerPhilipp Hagemeister <phihag@phihag.de>2012-12-20 13:14:27 +0100
commit9b14f51a3eaf5b63dad288e092d8a083dd931ceb (patch)
tree4fefae33533a3fcdbad636c5645f302ae3c65111
parentf4bfd65ff2bfce77a6953281c037ca8e516b7648 (diff)
Remove legacy code
-rw-r--r--youtube_dl/FileDownloader.py5
1 files changed, 0 insertions, 5 deletions
diff --git a/youtube_dl/FileDownloader.py b/youtube_dl/FileDownloader.py
index be70ec755..a7f3e1064 100644
--- a/youtube_dl/FileDownloader.py
+++ b/youtube_dl/FileDownloader.py
@@ -449,11 +449,6 @@ class FileDownloader(object):
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.')
- return
- try:
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))
except (OSError, IOError):