Skip to content

Commit e1bb8e8

Browse files
hoshinolinamarcan
authored andcommitted
m1n1.adt: Fix dashes in __delattr__
Signed-off-by: Asahi Lina <[email protected]>
1 parent d07ea82 commit e1bb8e8

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

proxyclient/m1n1/adt.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -559,6 +559,8 @@ def __delattr__(self, attr):
559559
if attr[0] == "_":
560560
del self.__dict__[attr]
561561
return
562+
attr = attr.replace("_", "-")
563+
attr = attr.replace("--", "_")
562564
del self._properties[attr]
563565

564566
def getprop(self, name, default=None):

0 commit comments

Comments
 (0)