From: Michael Foord Date: Wed, 14 Mar 2012 20:30:29 +0000 (-0700) Subject: Remove Python 2 compatibility cruft from unittest.mock X-Git-Tag: v3.3.0a2~196 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c17adf41511f7165935074bc505e09e0574f59be;p=thirdparty%2FPython%2Fcpython.git Remove Python 2 compatibility cruft from unittest.mock --- diff --git a/Lib/unittest/mock.py b/Lib/unittest/mock.py index 98d680b125fc..89fe232c2bf8 100644 --- 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 @@ _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)