From c17adf41511f7165935074bc505e09e0574f59be Mon Sep 17 00:00:00 2001 From: Michael Foord Date: Wed, 14 Mar 2012 13:30:29 -0700 Subject: Remove Python 2 compatibility cruft from unittest.mock --- Lib/unittest/mock.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/Lib/unittest/mock.py b/Lib/unittest/mock.py index 98d680b..89fe232 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) -- cgit v0.12