[Checkins] SVN: zope.configuration/branches/3.4/src/zope/configuration/config.py Use builtin set type: the 'sets' module is deprecated in Python 2.6.

Tres Seaver tseaver at palladion.com
Mon Oct 6 07:20:05 EDT 2008


Log message for revision 91792:
  Use builtin set type:  the 'sets' module is deprecated in Python 2.6.

Changed:
  U   zope.configuration/branches/3.4/src/zope/configuration/config.py

-=-
Modified: zope.configuration/branches/3.4/src/zope/configuration/config.py
===================================================================
--- zope.configuration/branches/3.4/src/zope/configuration/config.py	2008-10-06 11:05:23 UTC (rev 91791)
+++ zope.configuration/branches/3.4/src/zope/configuration/config.py	2008-10-06 11:20:04 UTC (rev 91792)
@@ -20,7 +20,6 @@
 __docformat__ = 'restructuredtext'
 import os.path
 import sys
-import sets
 
 import zope.schema
 
@@ -90,8 +89,8 @@
 
     def __init__(self):
         super(ConfigurationContext, self).__init__()
-        self._seen_files = sets.Set()
-        self._features = sets.Set()
+        self._seen_files = set()
+        self._features = set()
 
     def resolve(self, dottedname):
         """Resolve a dotted name to an object



More information about the Checkins mailing list