mirror of
				https://github.com/ytdl-org/youtube-dl.git
				synced 2025-10-29 09:26:20 -07:00 
			
		
		
		
	Strip newline from version
This commit is contained in:
		| @@ -3,7 +3,7 @@ import hashlib | |||||||
| import subprocess | import subprocess | ||||||
|  |  | ||||||
| template = file('index.html.in', 'r').read() | template = file('index.html.in', 'r').read() | ||||||
| version = subprocess.Popen(['./youtube-dl', '--version'], stdout=subprocess.PIPE).communicate()[0] | version = subprocess.Popen(['./youtube-dl', '--version'], stdout=subprocess.PIPE).communicate()[0].strip() | ||||||
| data = file('youtube-dl', 'rb').read() | data = file('youtube-dl', 'rb').read() | ||||||
| md5sum = hashlib.md5(data).hexdigest() | md5sum = hashlib.md5(data).hexdigest() | ||||||
| sha1sum = hashlib.sha1(data).hexdigest() | sha1sum = hashlib.sha1(data).hexdigest() | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user