Clear location-dependent attributes. This also triggers the removal of file references to this node.
(self)
| 430 | self._g_update_dependent() |
| 431 | |
| 432 | def _g_del_location(self) -> None: |
| 433 | """Clear location-dependent attributes. |
| 434 | |
| 435 | This also triggers the removal of file references to this node. |
| 436 | |
| 437 | """ |
| 438 | node_manager = self._v_file._node_manager |
| 439 | pathname = self._v_pathname |
| 440 | |
| 441 | if not self._v__deleting: |
| 442 | node_manager.drop_from_cache(pathname) |
| 443 | # Note: node_manager.drop_node does not remove the node from the |
| 444 | # registry if it is still open |
| 445 | node_manager.registry.pop(pathname, None) |
| 446 | |
| 447 | self._v_file = None |
| 448 | self._v_isopen = False |
| 449 | self._v_pathname = None |
| 450 | self._v_name = None |
| 451 | self._v_depth = None |
| 452 | |
| 453 | def _g_post_init_hook(self) -> None: |
| 454 | """Code to be run after node creation and before creation logging.""" |
no test coverage detected