BaseBot.userPut() method gives wrong result when trying to add spaces or newlines at the end of the page. MediaWiki does not respect adding any space to the end but strips it. Unfortunately userPut() method only checks for differences including empty spaces at the end and returns True but it should return False in that case.
The result of userPut() might be used for further bot action which could be declined when no edit was done.