浏览代码

Remove redundant (and wrong) class parameters

Raphael Michel 10 年之前
父节点
当前提交
2c7ed24796
共有 1 个文件被更改,包括 1 次插入3 次删除
  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
     download is too small for what the server announced first, indicating
     the connection was probably interrupted.
     the connection was probably interrupted.
     """
     """
-    # Both in bytes
-    downloaded = None
-    expected = None
 
 
     def __init__(self, downloaded, expected):
     def __init__(self, downloaded, expected):
+        # Both in bytes
         self.downloaded = downloaded
         self.downloaded = downloaded
         self.expected = expected
         self.expected = expected