mirror of
				https://github.com/yt-dlp/yt-dlp.git
				synced 2025-10-31 14:45:14 +00:00 
			
		
		
		
	dropped the support for Python 2.5
let's elaborate the decision: Python 2.5 is a 6 years old release and "under the current release policy, no security issues in Python 2.5 will be fixed anymore" (!!); also, it doesn't support the new zipfile distribution format.
This commit is contained in:
		| @@ -12,23 +12,14 @@ import time | ||||
| import urllib | ||||
| import urllib2 | ||||
| import email.utils | ||||
| import xml.etree.ElementTree | ||||
| from urlparse import parse_qs | ||||
|  | ||||
| try: | ||||
| 	import cStringIO as StringIO | ||||
| except ImportError: | ||||
| 	import StringIO | ||||
|  | ||||
| # parse_qs was moved from the cgi module to the urlparse module recently. | ||||
| try: | ||||
| 	from urlparse import parse_qs | ||||
| except ImportError: | ||||
| 	from cgi import parse_qs | ||||
|  | ||||
| try: | ||||
| 	import xml.etree.ElementTree | ||||
| except ImportError: # Python<2.5: Not officially supported, but let it slip | ||||
| 	warnings.warn('xml.etree.ElementTree support is missing. Consider upgrading to Python >= 2.5 if you get related errors.') | ||||
|  | ||||
| from utils import * | ||||
|  | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Filippo Valsorda
					Filippo Valsorda