commit 5d8df28d2728299d5550355f929e1282c0301464
parent 289bbb350e11ae1460db515560345088d7c58663
Author: Sergey M <dstftw@gmail.com>
Date: Wed, 29 Jul 2015 02:46:53 +0600
Merge pull request #6372 from raphaelm/patch-1
Remove redundant (and wrong) class parameters
Diffstat:
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/youtube_dl/utils.py b/youtube_dl/utils.py
@@ -576,11 +576,9 @@ class ContentTooShortError(Exception):
download is too small for what the server announced first, indicating
the connection was probably interrupted.
"""
- # Both in bytes
- downloaded = None
- expected = None
def __init__(self, downloaded, expected):
+ # Both in bytes
self.downloaded = downloaded
self.expected = expected