(self)
| 67 | |
| 68 | @contextmanager |
| 69 | def _patch(self): |
| 70 | impl = object.__getattribute__(self, '_local__impl') |
| 71 | try: |
| 72 | dct = impl.get_dict() |
| 73 | except KeyError: |
| 74 | dct = impl.create_dict() |
| 75 | args, kw = impl.localargs |
| 76 | self.__init__(*args, **kw) |
| 77 | with impl.locallock: |
| 78 | object.__setattr__(self, '__dict__', dct) |
| 79 | yield |
| 80 | |
| 81 | |
| 82 | class local: |
no test coverage detected
searching dependent graphs…