aboutsummaryrefslogtreecommitdiff
path: root/test/gentests.py
diff options
context:
space:
mode:
authorPhilipp Hagemeister <phihag@phihag.de>2012-11-29 20:38:16 +0100
committerPhilipp Hagemeister <phihag@phihag.de>2012-11-29 20:38:16 +0100
commite91d2338d8f5be16d8cd052d38c20bec9d5583ab (patch)
treec33ddfd4a8de0c56b5f42c898aa91c782a15e63c /test/gentests.py
parent4b235346d633982afd1f803f671778440cea15c4 (diff)
downloadyoutube-dl-e91d2338d8f5be16d8cd052d38c20bec9d5583ab.tar.xz
Fix MD5 calculation
Diffstat (limited to 'test/gentests.py')
-rwxr-xr-xtest/gentests.py13
1 files changed, 0 insertions, 13 deletions
diff --git a/test/gentests.py b/test/gentests.py
index 6f82ae8fa..9352d6d94 100755
--- a/test/gentests.py
+++ b/test/gentests.py
@@ -34,19 +34,6 @@ import youtube_dl.InfoExtractors
def _file_md5(fn):
with open(fn, 'rb') as f:
return hashlib.md5(f.read()).hexdigest()
-
-def md5_for_file(filename, block_size=2**20):
- with open(filename) as f:
- md5 = hashlib.md5()
- while True:
- data = f.read(block_size)
- if not data:
- break
- md5.update(data)
- return md5.hexdigest()
-_file_md5 = md5_for_file
-
-
try:
_skip_unless = unittest.skipUnless
except AttributeError: # Python 2.6