make with nested to work with 2.6
This commit is contained in:
parent
40ddd90e9b
commit
867cab7f25
|
@ -153,7 +153,9 @@ def _fbequal(fpath1, fpath2):
|
||||||
False otherwise.
|
False otherwise.
|
||||||
fpath1 and fpath2 are file paths.
|
fpath1 and fpath2 are file paths.
|
||||||
'''
|
'''
|
||||||
with open(fpath1, "rb") as f1, open(fpath2, "rb") as f2:
|
# nested to work with 2.6
|
||||||
|
with open(fpath1, "rb") as f1:
|
||||||
|
with open(fpath2, "rb") as f2:
|
||||||
while True:
|
while True:
|
||||||
b1 = f1.read(1)
|
b1 = f1.read(1)
|
||||||
b2 = f2.read(1)
|
b2 = f2.read(1)
|
||||||
|
|
Loading…
Reference in New Issue