Skip to content

Commit

Permalink
Remove try except around defusedxml as it is a dependency (#29)
Browse files Browse the repository at this point in the history
  • Loading branch information
Miauwkeru committed Feb 8, 2024
1 parent c13e13d commit 0b22e50
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 13 deletions.
5 changes: 1 addition & 4 deletions dissect/hypervisor/descriptor/pvs.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
from typing import IO, Iterator
from xml.etree.ElementTree import Element

try:
from defusedxml import ElementTree
except ImportError:
from xml.etree import ElementTree
from defusedxml import ElementTree


class PVS:
Expand Down
5 changes: 1 addition & 4 deletions dissect/hypervisor/descriptor/vbox.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
from typing import IO, Iterator
from xml.etree.ElementTree import Element

try:
from defusedxml import ElementTree
except ImportError:
from xml.etree import ElementTree
from defusedxml import ElementTree


class VBox:
Expand Down
6 changes: 1 addition & 5 deletions dissect/hypervisor/disk/hdd.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,7 @@
from uuid import UUID
from xml.etree.ElementTree import Element

try:
from defusedxml import ElementTree
except ImportError:
from xml.etree import ElementTree

from defusedxml import ElementTree
from dissect.util.stream import AlignedStream

from dissect.hypervisor.disk.c_hdd import SECTOR_SIZE, c_hdd
Expand Down

0 comments on commit 0b22e50

Please sign in to comment.