WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] [patch] fix python 2.6 warnings

To: Ian Jackson <Ian.Jackson@xxxxxxxxxxxxx>
Subject: Re: [Xen-devel] [patch] fix python 2.6 warnings
From: Gerd Hoffmann <kraxel@xxxxxxxxxx>
Date: Tue, 10 Mar 2009 14:44:19 +0100
Cc: Xen Development Mailing List <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Tue, 10 Mar 2009 06:44:49 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <18870.23173.605053.102901@xxxxxxxxxxxxxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <49B64EC3.4070303@xxxxxxxxxx> <18870.23173.605053.102901@xxxxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird 2.0.0.19 (X11/20090105)
Ian Jackson wrote:
> Gerd Hoffmann writes ("[Xen-devel] [patch] fix python 2.6 warnings"):
>> Attached patch fixes a few python warnings about deprecated modules.
> 
> Can you please confirm in which Python version the new modules were
> introduced ?  Some people (including our automatic test systems!) are
> using very old versions of python and it would be nice if that kept
> working.

set type (obsoletes sets module) was added in 2.4
hashlib (obsoletes sha module) was added in 2.5

For reference:  RHEL-5 ships with python 2.4.

Which makes me think at least the hashlib one needs a more sophisticated
approach so it keeps working on pre-2.5 versions ...

cheers,
  Gerd

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel