diff options
Diffstat (limited to 'tools/pyparted.py')
-rw-r--r-- | tools/pyparted.py | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/tools/pyparted.py b/tools/pyparted.py index 492e032..c51a13b 100644 --- a/tools/pyparted.py +++ b/tools/pyparted.py @@ -1,4 +1,5 @@ import logging +import parted # type: ignore from . import log @@ -6,16 +7,6 @@ __all__ = ["list_partitions"] L = logging.getLogger(__name__) -try: - import parted # type: ignore -except ModuleNotFoundError: - L.error( - "You need to install the following packages:\n" - "sudo apt install python3-dev libparted-dev pkg-config\n" - "pip3 install pyparted" - ) - raise - SUPPORTED_FS_TYPES = ["ext2", "ext3", "ext4", "xfs", "btrfs", "vfat", "ntfs"] |