From 3aec10ae3b3c44c71038ba6880328d9830949ba9 Mon Sep 17 00:00:00 2001 From: Manuel Gunther Date: Thu, 17 Sep 2015 18:47:19 -0600 Subject: [PATCH] Simplified binary file comparison --- bob/measure/test_io.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/bob/measure/test_io.py b/bob/measure/test_io.py index 72252b4..f3c268c 100644 --- a/bob/measure/test_io.py +++ b/bob/measure/test_io.py @@ -38,11 +38,7 @@ def test_load_scores(): def _check_binary_identical(name1, name2): # see: http://www.peterbe.com/plog/using-md5-to-check-equality-between-files - import sys - if sys.version_info[0] == 2: - from md5 import new as md5 - else: - from hashlib import md5 + from hashlib import md5 # tests if two files are binary identical with open(name1,'rb') as f1: with open(name2,'rb') as f2: