mirror of
https://github.com/wassname/scikit-image.git
synced 2026-07-06 05:16:40 +08:00
BUG: Cython build: Open file correctly under Python 3 [patch by Nadav Horesh].
This commit is contained in:
@@ -69,10 +69,10 @@ def same_cython(f0, f1):
|
||||
if not (os.path.isfile(f0) and os.path.isfile(f1)):
|
||||
return False
|
||||
|
||||
f0 = file(f0)
|
||||
f0 = open(f0, 'br')
|
||||
f0.readline()
|
||||
|
||||
f1 = file(f1)
|
||||
f1 = open(f1, 'br')
|
||||
f1.readline()
|
||||
|
||||
return md5sum(f0) == md5sum(f1)
|
||||
|
||||
Reference in New Issue
Block a user