* Migrate set() and frozenset() from the sandbox.
* Install the unittests, docs, newsitem, include file, and makefile update.
* Exercise the new functions whereever sets.py was being used.
Includes the docs for libfuncs.tex. Separate docs for the types are
forthcoming.
diff --git a/Lib/test/test_pyclbr.py b/Lib/test/test_pyclbr.py
index 1229962..db1fc43 100644
--- a/Lib/test/test_pyclbr.py
+++ b/Lib/test/test_pyclbr.py
@@ -7,7 +7,6 @@
from types import ClassType, FunctionType, MethodType
import pyclbr
from unittest import TestCase
-from sets import Set
# This next line triggers an error on old versions of pyclbr.
@@ -24,7 +23,7 @@
def assertListEq(self, l1, l2, ignore):
''' succeed iff {l1} - {ignore} == {l2} - {ignore} '''
- missing = (Set(l1) ^ Set(l2)) - Set(ignore)
+ missing = (set(l1) ^ set(l2)) - set(ignore)
if missing:
print >>sys.stderr, "l1=%r\nl2=%r\nignore=%r" % (l1, l2, ignore)
self.fail("%r missing" % missing.pop())