Remove Python 2 compatibility cruft from unittest.mock

This commit is contained in:
Michael Foord 2012-03-14 13:30:29 -07:00
parent ebff097937
commit c17adf4151
1 changed files with 3 additions and 5 deletions

View 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 @@ def __getattr__(self, name):
_deleted = sentinel.DELETED
class OldStyleClass:
pass
ClassType = type(OldStyleClass)
def _copy(value):
if type(value) in (dict, list, tuple, set):
return type(value)(value)