From 5cdff4dc2aa3825082640cfe72ce3e7b978734f3 Mon Sep 17 00:00:00 2001 From: Pierre Mdawar Date: Mon, 17 Oct 2016 19:18:29 +0300 Subject: [PATCH] [utils] added explicit string formatting indexes to support Python 2.6 --- youtube_dl/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/youtube_dl/utils.py b/youtube_dl/utils.py index fe73cc11c..d7d614afc 100644 --- a/youtube_dl/utils.py +++ b/youtube_dl/utils.py @@ -780,7 +780,7 @@ class ContentTooShortError(YoutubeDLError): def __init__(self, downloaded, expected): super(ContentTooShortError, self).__init__( - 'Downloaded {} bytes, expected {} bytes'.format(downloaded, expected) + 'Downloaded {0} bytes, expected {1} bytes'.format(downloaded, expected) ) # Both in bytes self.downloaded = downloaded