Can you please explain this change. `pos` is either `True` or `False` as it is the return value of
https://docs.python.org/2/library/stdtypes.html#str.endswith
I don't understand why `if pos and...` is replaced with `if pos > -1 and...`