code review: added endpos to found tuple, just to be safe by unpack

pull/1583/head
sebres 2016-11-17 21:04:51 +01:00
parent 58717c1854
commit a2cf34a64e
1 changed files with 1 additions and 1 deletions

View File

@ -359,7 +359,7 @@ class DateDetector(object):
if not match:
self.__lastTemplIdx = 0x7fffffff
logSys.log(logLevel, " search template (%i) ...", len(self.__templates))
found = None, 0x7fffffff, -1
found = None, 0x7fffffff, 0x7fffffff, -1
i = 0
for ddtempl in self.__templates:
if logSys.getEffectiveLevel() <= logLevel-1: