python3/pypy compatibility fix

pull/716/head
sebres 2014-09-16 17:51:57 +02:00
parent 0dce32405f
commit 96de888ac7
1 changed files with 2 additions and 2 deletions

View File

@ -717,7 +717,7 @@ class FileFilter(Filter):
lasti = 0 lasti = 0
movecntr = 3 movecntr = 3
while maxp > minp: while maxp > minp:
i = round(minp + (maxp - minp) / 2) i = int(minp + (maxp - minp) / 2)
pos = container.seek(i) pos = container.seek(i)
cntr += 1 cntr += 1
# within next 5 lines try to find any legal datetime: # within next 5 lines try to find any legal datetime:
@ -748,7 +748,7 @@ class FileFilter(Filter):
if not dateTimeMatch: if not dateTimeMatch:
break break
unixTime = dateTimeMatch[0] unixTime = dateTimeMatch[0]
if round(unixTime) == round(date): if int(unixTime) == int(date):
break break
if unixTime >= date: if unixTime >= date:
maxp = i maxp = i