[Python-checkins] cpython: Remove Python 2 compatibility cruft from unittest.mock

michael.foord python-checkins at python.org
Wed Mar 14 21:30:42 CET 2012


http://hg.python.org/cpython/rev/6700fd345835
changeset:   75639:6700fd345835
user:        Michael Foord <michael at voidspace.org.uk>
date:        Wed Mar 14 13:30:29 2012 -0700
summary:
  Remove Python 2 compatibility cruft from unittest.mock

files:
  Lib/unittest/mock.py |  8 +++-----
  1 files changed, 3 insertions(+), 5 deletions(-)


diff --git a/Lib/unittest/mock.py b/Lib/unittest/mock.py
--- a/Lib/unittest/mock.py
+++ b/Lib/unittest/mock.py
@@ -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 @@
 _deleted = sentinel.DELETED
 
 
-class OldStyleClass:
-    pass
-ClassType = type(OldStyleClass)
-
-
 def _copy(value):
     if type(value) in (dict, list, tuple, set):
         return type(value)(value)

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list