Jesse (Pathoschild) ha scritto:
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.
The syntax error will not occur if Python exits before importing.
The syntax error occur always because all our scripts (except maybe udp-log.py) aren't compatible with Python 3.0 syntax. And Nicolas' patch raises syntax error intentionally just on the line he has added.
Liagent patch would work only with scripts Python 3.0 compatible that try to import wikipedia module. As I have already said, we should/can do more Python 3.0 compatible scripts. It isn't hard.