Comment 2 for bug 809884

Revision history for this message
Andreas Becker (abecker) wrote :

According to the documentation, both changes do work in every Python 2 version (http://docs.python.org/release/2.0)

A somewhat problematic change would be for example the exception handling, which leads to incompatibilities between <2.6 and >=3.0. Python 3 only allows "except Exception as e:", but the keyword "as" does not exist in <2.6.
Fortunately, I could not find deprecated constructs like "except Exception, e:" in JessyInk, so this is *currently* no problem.

Another hint for the u(...) function: instead of try/except, it is also possible to use sys.hexversion or sys.version_info.