make with nested to work with 2.6

This commit is contained in:
darko-poljak 2014-02-08 19:11:55 +01:00
parent 40ddd90e9b
commit 867cab7f25
1 changed files with 10 additions and 8 deletions

View File

@ -153,7 +153,9 @@ def _fbequal(fpath1, fpath2):
False otherwise.
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:
b1 = f1.read(1)
b2 = f2.read(1)