Steps to replicate the issue (include links if applicable):
- Create a user-password.py file.
- Add a ('SiteCode', 'FamilyName', 'Username', BotPassword('BotName', 'Password')) entry to user-password.py, including all fields.
What happens?:
If I use a ('SiteCode', 'FamilyName', 'Username', BotPassword('BotName', 'Password')) format in my user-password.py, the message "Password line too long or too complex" appears.
What should have happened instead?:
I think this is due to the line "line.count(',') > 3" : https://github.com/wikimedia/pywikibot/blob/master/pywikibot/login.py#L265 because my password line contains four (> 3) commas including the comma between the two args of BotPassword.
Software version (on Special:Version page; skip for WMF-hosted wikis like Wikipedia):
Pywikibot 10.7.2
Other information (browser name/version, screenshots, etc.):