unittest.mock: removed another bit of Python 2 only code

This commit is contained in:
Michael Foord 2012-03-25 23:27:12 +01:00
parent 944e02d055
commit 0340ea77d1
1 changed files with 0 additions and 6 deletions

View File

@ -1086,12 +1086,6 @@ class _patch(object):
patching.__exit__(*exc_info)
patched.patchings = [self]
if hasattr(func, 'func_code'):
# not in Python 3
patched.compat_co_firstlineno = getattr(
func, "compat_co_firstlineno",
func.func_code.co_firstlineno
)
return patched