[Bug 610352] New: Ensure Python sysadmin scripts are Python 2.6 compatible

  sysadmin | Other | unspecified

           Summary: Ensure Python sysadmin scripts are Python 2.6
    Classification: Infrastructure
           Product: sysadmin
           Version: unspecified
        OS/Version: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: Normal
         Component: Other
        AssignedTo: sysadmin-maint gnome bugs
        ReportedBy: bugzilla-gnome vitters nl
         QAContact: sysadmin-maint gnome bugs
      GNOME target: ---
     GNOME version: ---

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!

Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the QA contact of the bug.
You are watching the assignee of the bug.

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]