mirror of https://github.com/tLDP/python-tldp
returning the wrong answer... get the FIRST answer (yay for testing)
This commit is contained in:
parent
85e6441fa5
commit
ad73629413
|
@ -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
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue