After svn update of pywikibot from R12566 to R12921 i got this message
AttributeError: module 'pywikibot.config2' has no attribute 'LS'
(used in cosmetic_changes.py, section cleansectionheaders)
i compared old code with actual and found that in pywikibot/config2 is missing section
# Define the line separator. Pages retrieved via API have "\n" whereas # pages fetched from screen (mostly) have "\r\n". Interwiki and category # separator settings in family files should use multiplied of this. # LS is a shortcut alias. line_separator = LS = '\n'
after adding bot works again