Add a __delitem__ dictionary method to ip.Packet

This commit is contained in:
pi-rho 2012-08-18 09:12:35 -05:00
parent 4b21c083cf
commit cd02beecff
1 changed files with 3 additions and 0 deletions

View File

@ -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]