Removes packet from Blob. (internal use only)
(self, packet)
| 1964 | self._remove_packet(packet_) |
| 1965 | |
| 1966 | def _remove_packet(self, packet): |
| 1967 | """ |
| 1968 | Removes packet from Blob. (internal use only) |
| 1969 | """ |
| 1970 | # Clear old data and segment cache. |
| 1971 | self._data = None |
| 1972 | self._segments = None |
| 1973 | |
| 1974 | for seq, packet_ in list(self._seq_map.items()): |
| 1975 | if packet_ == packet: |
| 1976 | del self._seq_map[seq] |
| 1977 | if seq == self.seq_max: |
| 1978 | self.seq_max = max(self._seq_map.keys()) |
| 1979 | |
| 1980 | self.packets.remove(packet) |
no outgoing calls
no test coverage detected