X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=youtube_dl%2Futils.py;h=88f9f90707fbd04966638125e94b264af95fedcb;hb=525a87f58ee9c4ee91b5b0384184dabf6d87eef3;hp=ae813099dded05c15ed57d27e51be7704e778520;hpb=9872e588c855e9c8cf456ddc4514e6e127f56322;p=youtube-dl diff --git a/youtube_dl/utils.py b/youtube_dl/utils.py index ae813099d..88f9f9070 100644 --- 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