Empty action storage (nodes and attributes). This method empties all action storage kept in this node: nodes and attributes.
(self)
| 1296 | ) |
| 1297 | |
| 1298 | def _g_reset(self) -> None: |
| 1299 | """Empty action storage (nodes and attributes). |
| 1300 | |
| 1301 | This method empties all action storage kept in this node: nodes |
| 1302 | and attributes. |
| 1303 | |
| 1304 | """ |
| 1305 | # Remove action storage nodes. |
| 1306 | for child in list(self._v_children.values()): |
| 1307 | child._g_remove(True, True) |
| 1308 | |
| 1309 | # Remove action storage attributes. |
| 1310 | attrs = self._v_attrs |
| 1311 | shname = self._c_shadow_name_re |
| 1312 | for attrname in attrs._v_attrnamesuser[:]: |
| 1313 | if shname.match(attrname): |
| 1314 | attrs._g__delattr(attrname) |
no test coverage detected