From: Leandro Lucarella Date: Sat, 10 May 2008 22:06:04 +0000 (-0300) Subject: Don't override the ListSubHandler.delete() method in HopHandler (fixes #19). X-Git-Url: https://git.llucax.com/software/pymin.git/commitdiff_plain/69bb0170576ea849a1872015f36a575cdcb64035 Don't override the ListSubHandler.delete() method in HopHandler (fixes #19). --- diff --git a/pymin/services/ip/__init__.py b/pymin/services/ip/__init__.py index 12b53e5..86551f4 100644 --- a/pymin/services/ip/__init__.py +++ b/pymin/services/ip/__init__.py @@ -41,12 +41,6 @@ class HopHandler(ListSubHandler): raise DeviceNotFoundError(device) return ListSubHandler.add(self, dev, gw) - @handler(u'Delete a hop: delete ') - def delete(self, dev, gw): - if not dev in self.parent.devices: - raise DeviceNotFoundError(device) - return ListSubHandler.delete(self, dev, gw) - class Route(Sequence): def __init__(self, net_addr, prefix, gateway):