returning the wrong answer... get the FIRST answer (yay for testing)

This commit is contained in:
Martin A. Brown 2016-02-12 23:00:30 -08:00
parent 85e6441fa5
commit ad73629413
1 changed files with 1 additions and 1 deletions

View File

@ -62,7 +62,7 @@ def guess(thing):
for sindex, doctype in guesses:
logger.info("Could be %s (file position %s)", doctype, sindex)
logger.info("Going to guess that it is %s", doctype)
_, doctype = guesses.pop()
_, doctype = guesses.pop(0)
return doctype