invalid syntax in wikipedia.py
i'm working on CentOS 6.6 - Python 2.6.6 when i install wikipedia with pip or from git source, i get this error:
File "/usr/lib/python2.6/site-packages/wikipedia/init.py", line 1, in
i solved with this syntax:
a = {} for lang in languages: b = lang['code'] c = lang['*'] a[b] = c return a
instead of:
return { lang['code']: lang['*'] for lang in languages }
insert this code in wikipedia in git source and install with setup,py
wikipedia 1.5.0 (https://github.com/goldsmith/Wikipedia/releases/tag/v1.5.0) requires Python 3.10+, so this Python-2-era report is obsolete. Closing.