(self)
| 809 | self._pop_tape() |
| 810 | |
| 811 | def _push_tape(self): |
| 812 | if self._recording: |
| 813 | raise ValueError("Tape is already recording.") |
| 814 | if self._tape is None: |
| 815 | self._tape = tape.push_new_tape( |
| 816 | persistent=self._persistent, |
| 817 | watch_accessed_variables=self._watch_accessed_variables) |
| 818 | else: |
| 819 | tape.push_tape(self._tape) |
| 820 | self._recording = True |
| 821 | |
| 822 | def _pop_tape(self): |
| 823 | if not self._recording: |
no outgoing calls
no test coverage detected