From 3c53b78720fa68ca801e026d981940387a2cb733 Mon Sep 17 00:00:00 2001 From: Ricardo Garcia Date: Tue, 22 Jul 2008 23:02:42 +0200 Subject: [PATCH] Strip newline from version --- generate-index | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/generate-index b/generate-index index 324001cae..f8f940e4c 100755 --- a/generate-index +++ b/generate-index @@ -3,7 +3,7 @@ import hashlib import subprocess 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() md5sum = hashlib.md5(data).hexdigest() sha1sum = hashlib.sha1(data).hexdigest()