Re: [Yum-devel] Fix deprecation warning in fedorakmod.py

2009-02-11 Thread seth vidal
On Wed, 2009-02-11 at 08:15 +0100, Felix Schwarz wrote: > Hi, > > The sets module is deprecated in Python 2.6 and 'set' is a built-in type since > Python 2.4. However by applying this change the module becomes incompatible > with Python 2.3. If it needs to be compatible, do this in the import: > t

Re: [Yum-devel] Fix deprecation warning in fedorakmod.py

2009-02-11 Thread Felix Schwarz
I should add that I did not test the patch so you probably need to check if it still works for older versions of Python. fs ___ Yum-devel mailing list Yum-devel@lists.baseurl.org http://lists.baseurl.org/mailman/listinfo/yum-devel

[Yum-devel] Fix deprecation warning in fedorakmod.py

2009-02-10 Thread Felix Schwarz
Hi, The sets module is deprecated in Python 2.6 and 'set' is a built-in type since Python 2.4. However by applying this change the module becomes incompatible with Python 2.3. If it needs to be compatible, do this in the import: try: set except NameError: from sets import Set as set Furt