``commit_undo_actions`` commits the actions taken since a call to :py:func:`begin_undo_actions` Pass as `id` the value returned by :py:func:`begin_undo_actions`. Empty values of `id` will commit all changes since the last call to :py:func:`begin_undo_actions`. :param Optional[str] id: id o
(self, id: Optional[str] = None)
| 4300 | return self._file.begin_undo_actions(anonymous_allowed) |
| 4301 | |
| 4302 | def commit_undo_actions(self, id: Optional[str] = None) -> None: |
| 4303 | """ |
| 4304 | ``commit_undo_actions`` commits the actions taken since a call to :py:func:`begin_undo_actions` |
| 4305 | Pass as `id` the value returned by :py:func:`begin_undo_actions`. Empty values of |
| 4306 | `id` will commit all changes since the last call to :py:func:`begin_undo_actions`. |
| 4307 | |
| 4308 | :param Optional[str] id: id of undo state, from :py:func:`begin_undo_actions` |
| 4309 | :rtype: None |
| 4310 | :Example: |
| 4311 | |
| 4312 | >>> bv.get_disassembly(0x100012f1) |
| 4313 | 'xor eax, eax' |
| 4314 | >>> state = bv.begin_undo_actions() |
| 4315 | >>> bv.convert_to_nop(0x100012f1) |
| 4316 | True |
| 4317 | >>> bv.commit_undo_actions(state) |
| 4318 | >>> bv.get_disassembly(0x100012f1) |
| 4319 | 'nop' |
| 4320 | >>> bv.undo() |
| 4321 | >>> bv.get_disassembly(0x100012f1) |
| 4322 | 'xor eax, eax' |
| 4323 | >>> |
| 4324 | """ |
| 4325 | self._file.commit_undo_actions(id) |
| 4326 | |
| 4327 | def forget_undo_actions(self, id: Optional[str] = None) -> None: |
| 4328 | """ |
no outgoing calls
no test coverage detected