]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Remove Python 2 compatibility cruft from unittest.mock
authorMichael Foord <michael@voidspace.org.uk>
Wed, 14 Mar 2012 20:30:29 +0000 (13:30 -0700)
committerMichael Foord <michael@voidspace.org.uk>
Wed, 14 Mar 2012 20:30:29 +0000 (13:30 -0700)
Lib/unittest/mock.py

index 98d680b125fc59a3404c9d1a0d180124a03d7e52..89fe232c2bf8b7aa33cdc963ef89814e924655c9 100644 (file)
@@ -1,5 +1,8 @@
 # mock.py
 # Test tools for mocking and patching.
+# Maintained by Michael Foord
+# Backport for other versions of Python available from
+# http://pypi.python.org/pypi/mock
 
 __all__ = (
     'Mock',
@@ -259,11 +262,6 @@ _missing = sentinel.MISSING
 _deleted = sentinel.DELETED
 
 
-class OldStyleClass:
-    pass
-ClassType = type(OldStyleClass)
-
-
 def _copy(value):
     if type(value) in (dict, list, tuple, set):
         return type(value)(value)