[yum-git] yum/packageSack.py

Seth Vidal skvidal at linux.duke.edu
Thu Feb 14 21:06:23 UTC 2008


 yum/packageSack.py |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit f006ec963042776bae2c73dfa610c073a1f6a9ef
Author: Seth Vidal <skvidal at fedoraproject.org>
Date:   Thu Feb 14 16:02:55 2008 -0500

    set() is in 2.4 and 2.5 so no need to import sets

diff --git a/yum/packageSack.py b/yum/packageSack.py
index d596c44..3c98e92 100644
--- a/yum/packageSack.py
+++ b/yum/packageSack.py
@@ -23,7 +23,7 @@ import warnings
 import re
 import fnmatch
 import misc
-from sets import Set
+
 
 class PackageSackBase(object):
     """Base class that provides the interface for PackageSacks."""
@@ -226,7 +226,7 @@ class PackageSackBase(object):
                 continue
             for r in po.requires_names:
                 if not req.has_key(r):
-                    req[r] = Set()
+                    req[r] = set()
                 req[r].add(po)
      
      



More information about the Yum-cvs-commits mailing list