mirror of https://github.com/dirtbags/netarch.git
Add a __delitem__ dictionary method to ip.Packet
This commit is contained in:
parent
4b21c083cf
commit
cd02beecff
|
@ -535,6 +535,9 @@ class Packet(UserDict.DictMixin):
|
|||
def __setitem__(self, k, v):
|
||||
self.params[k] = v
|
||||
|
||||
def __delitem__(self, k):
|
||||
del self.params[k]
|
||||
|
||||
def __getitem__(self, k):
|
||||
return self.params[k]
|
||||
|
||||
|
|
Loading…
Reference in New Issue