Pārlūkot izejas kodu

Merge pull request #6372 from raphaelm/patch-1

Remove redundant (and wrong) class parameters
Sergey M. 10 gadi atpakaļ
vecāks
revīzija
5d8df28d27
1 mainītis faili ar 1 papildinājumiem un 3 dzēšanām
  1. 1 3
      youtube_dl/utils.py

+ 1 - 3
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