Skip to content

Commit

Permalink
Simplified binary file comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
siebenkopf committed Sep 18, 2015
1 parent 352f5a2 commit 3aec10a
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions bob/measure/test_io.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 3aec10a

Please sign in to comment.