Liangent ha scritto:
is it ok to move everything else to another module, and import them after checking python version?
if python 3.x is running, the script will exit before import is executed. so there will be no problem about syntax.
The import statement isn't executed due to syntax error. Isn't that the problem?
Besides wikipedia module is a library so it hasn't to close Python.
gettext probably it's a good idea to improve bots compatibility with 3.0.