GNOME Bugzilla – Bug 610352
Ensure Python sysadmin scripts are Python 2.6 compatible
Last modified: 2011-04-03 18:26:52 UTC
The oldest Python version on any server is 2.4. All sysadmin scripts should be checked that they work with Python 2.6. As in: no warnings, correct working, etc. Note that the scripts should still work under 2.4. As small example, instead of: > import md5 do something like: > try: > import hashlib > except ImportError: > import md5 as hashlib This as import md5 gives a warning under 2.6 (and maybe before that as well). and ensure usage of md5 is correct (md5.md5, not md5.new or something). Note: this is not about making it compatible with 3.0, scripts still need to work with Python 2.4!