After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 610352 - Ensure Python sysadmin scripts are Python 2.6 compatible
Ensure Python sysadmin scripts are Python 2.6 compatible
Product: sysadmin
Classification: Infrastructure
Component: Other
Other All
: Normal normal
: ---
Assigned To: GNOME Sysadmins
GNOME Sysadmins
Depends on:
Reported: 2010-02-18 12:27 UTC by Olav Vitters
Modified: 2011-04-03 18:26 UTC
See Also:
GNOME target: ---
GNOME version: ---

Description Olav Vitters 2010-02-18 12:27:27 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 or something).

Note: this is not about making it compatible with 3.0, scripts still need to work with Python 2.4!