(self)
| 1315 | |
| 1316 | |
| 1317 | def copy(self): |
| 1318 | patcher = _patch( |
| 1319 | self.getter, self.attribute, self.new, self.spec, |
| 1320 | self.create, self.spec_set, |
| 1321 | self.autospec, self.new_callable, self.kwargs |
| 1322 | ) |
| 1323 | patcher.attribute_name = self.attribute_name |
| 1324 | patcher.additional_patchers = [ |
| 1325 | p.copy() for p in self.additional_patchers |
| 1326 | ] |
| 1327 | return patcher |
| 1328 | |
| 1329 | |
| 1330 | def __call__(self, func): |