unittest.mock: removed another bit of Python 2 only code
This commit is contained in:
parent
944e02d055
commit
0340ea77d1
|
@ -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
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue