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

Felix Schwarz felix.schwarz at oss.schwarz.eu
Wed Feb 11 07:15:39 UTC 2009


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

Furthermore I found that the mailing list URL in the README is outdated.

HTH
fs

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: wrong_ml_url.diff
URL: <http://lists.baseurl.org/pipermail/yum-devel/attachments/20090211/3f9cdacf/attachment.diff>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: fix_set_deprecation_warning.diff
URL: <http://lists.baseurl.org/pipermail/yum-devel/attachments/20090211/3f9cdacf/attachment-0001.diff>


More information about the Yum-devel mailing list