From mboxrd@z Thu Jan 1 00:00:00 1970 From: Gerd Hoffmann Subject: Re: [patch] fix python 2.6 warnings Date: Tue, 10 Mar 2009 14:44:19 +0100 Message-ID: <49B66EB3.5010405@redhat.com> References: <49B64EC3.4070303@redhat.com> <18870.23173.605053.102901@mariner.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <18870.23173.605053.102901@mariner.uk.xensource.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Ian Jackson Cc: Xen Development Mailing List List-Id: xen-devel@lists.xenproject.org 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