Victor Stinner  committed 1f9fb6b

hachoir-editor: fix for del editor["parent/field"] syntax

  • Participants
  • Parent commits e4bdb48
  • Branches default

Comments (0)

Files changed (1)

File hachoir-editor/hachoir_editor/

         Remove a field from the field set. May raise an MissingField exception
         if the field has already been deleted.
+        parts = name.partition('/')
+        if parts[2]:
+            fieldset = self[parts[0]]
+            del fieldset[parts[2]]
+            return
         if name in self._deleted:
             raise MissingField(self, name)