File: //lib/python3/dist-packages/parted/__pycache__/device.cpython-312.pyc
�
r(b�1 � �| � d dl Z e j dk\ reZd dlZd dlmZ d dlZd dlZd dl Z d dl
mZ G d� de� Z
y)� N)� )�Decimal)�localeCc �� � e Zd ZdZed/d�� Zd� Zd� Zd� Ze d� � Z
e d� � Ze d � � Ze d
� � Z
e d� � Ze d� � Ze d
� � Ze d� � Ze d� � Ze d� � Ze d� � Ze d� � Ze d� � Ze d� � Ze d� � Ze d� � Zd� Zed� � Zed� � Zed� � Zed� � Zed� � Zed� � Z ed� � Z!ed� � Z"ed � � Z#ed0d!�� Z$ed"� � Z%ed#� � Z&ed$� � Z'ed%� � Z(ed&� � Z)d1d'�Z*ed2d(�� Z+ed)� � Z,e ed*� � � Z-e ed+� � � Z.e ed,� � � Z/e ed-� � � Z0d.� Z1y)3�Deviceab Device()
Device represents a physical piece of hardware in the system, e.g. a
disk. A Device should be considered a low-level and operating system
specific interface to the hardware.
A number of read-only properties of the Device are available.
For information on the individual methods, see help(Device.METHODNAME)Nc �z � |r|| _ y|�t j |� | _ yt j d� �)z�Create a new Device object based on the specified path or the
already existing _ped.Device object. You must provide either a
path (e.g., "/dev/sda") or an existing _ped.Device object, but
not both.Nzno path or PedDevice specified)�_Device__device�_ped�
device_get�parted�DeviceException)�self�path� PedDevices �//usr/lib/python3/dist-packages/parted/device.py�__init__zDevice.__init__1 s6 � � �%�D�M�
�
� �O�O�D�1�D�M��(�(�)I�J�J� c �&