[Python-3000-checkins] r55679 - python/branches/p3yk/Lib/unittest.py

neal.norwitz python-3000-checkins at python.org
Wed May 30 09:31:58 CEST 2007


Author: neal.norwitz
Date: Wed May 30 09:31:55 2007
New Revision: 55679

Modified:
   python/branches/p3yk/Lib/unittest.py
Log:
Fix up another place that was assigning to True/False.

Modified: python/branches/p3yk/Lib/unittest.py
==============================================================================
--- python/branches/p3yk/Lib/unittest.py	(original)
+++ python/branches/p3yk/Lib/unittest.py	Wed May 30 09:31:55 2007
@@ -65,22 +65,6 @@
 
 
 ##############################################################################
-# Backward compatibility
-##############################################################################
-if sys.version_info[:2] < (2, 2):
-    False, True = 0, 1
-    def isinstance(obj, clsinfo):
-        import __builtin__
-        if type(clsinfo) in (tuple, list):
-            for cls in clsinfo:
-                if cls is type: cls = types.ClassType
-                if __builtin__.isinstance(obj, cls):
-                    return 1
-            return 0
-        else: return __builtin__.isinstance(obj, clsinfo)
-
-
-##############################################################################
 # Test framework core
 ##############################################################################
 


More information about the Python-3000-checkins mailing list