mirror of
				https://github.com/yt-dlp/yt-dlp.git
				synced 2025-10-30 22:25:19 +00:00 
			
		
		
		
	various py3 fixes; all tests green on 3.3
This commit is contained in:
		| @@ -453,9 +453,9 @@ class FileDownloader(object): | ||||
|                 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: | ||||
|                 infof = open(encodeFilename(infofn), 'wb') | ||||
|                 infof = open(encodeFilename(infofn), 'w') | ||||
|                 try: | ||||
|                     json_info_dict = dict((k,v) for k,v in info_dict.iteritems() if not k in ('urlhandle',)) | ||||
|                     json_info_dict = dict((k, info_dict[k]) for k in info_dict if not k in ['urlhandle']) | ||||
|                     json.dump(json_info_dict, infof) | ||||
|                 finally: | ||||
|                     infof.close() | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Filippo Valsorda
					Filippo Valsorda