tests/test_docstrings.py
changeset 3326 ce725978d11c
parent 3075 5175c093a0dd
child 3617 ae5744e97c42
--- a/tests/test_docstrings.py	Sat Feb 06 09:24:08 2010 +0000
+++ b/tests/test_docstrings.py	Mon Feb 08 18:17:33 2010 +0000
@@ -71,7 +71,7 @@
                 obj = eval(mName + '.' + n)
                 # Handle functions and classes.
                 if typ in (FunctionType, ClassType):
-                    if type(obj) == typ and not lookup.has_key(obj):
+                    if type(obj) == typ and obj not in lookup:
                         if typ == ClassType:
                             if find(obj.__module__, rootName) != 0:
                                 continue
@@ -82,7 +82,7 @@
                     if type(obj) == ClassType:
                         for m in dir(obj):
                             a = getattr(obj, m)
-                            if type(a) == typ and not lookup.has_key(a):
+                            if type(a) == typ and a not in lookup:
                                 if find(a.im_class.__module__, rootName) != 0:
                                     continue
                                 cName = obj.__name__