Traceback (most recent call last): File "xyz\xxx\yyy.py", line 89, in <module> page.put(page_text, summary) File "xyz\pywikibot-core\pywikibot\tools\__init__.py", line 1105, in wrapper return obj(*__args, **__kw) File "xyz\pywikibot-core\pywikibot\page.py", line 1144, in put **kwargs) File "xyz\pywikibot-core\pywikibot\tools\__init__.py", line 1105, in wrapper return obj(*__args, **__kw) File "xyz\pywikibot-core\pywikibot\page.py", line 1062, in save cc=apply_cosmetic_changes, **kwargs) File "xyz\pywikibot-core\pywikibot\page.py", line 1070, in _save summary = self._cosmetic_changes_hook(summary) or summary File "xyz\pywikibot-core\pywikibot\page.py", line 1120, in _cosmetic_changes_hook self.text = ccToolkit.change(old) File "xyz\pywikibot-core\pywikibot\cosmetic_changes.py", line 279, in change new_text = self._change(text) File "xyz\pywikibot-core\pywikibot\cosmetic_changes.py", line 273, in _change text = self.safe_execute(method, text) File "xyz\pywikibot-core\pywikibot\cosmetic_changes.py", line 260, in safe_execute result = method(text) File "xyz\pywikibot-core\pywikibot\cosmetic_changes.py", line 849, in fixArabicLetters old = digits[digits.keys()[0]] TypeError: 'dict_keys' object does not support indexing
In Python 3 the dict.keys() method returns a dictionary view object, which does not support indexing.