(self)
Child partitions of a whole disk.
Child partitions of a whole disk.
Child partitions of a whole disk .
def Partitions(self):
    """Child partitions of a whole disk."""
    if not self.wholedisk:  # pylint: disable=no-member
      raise MacDiskError("%s is not a whole disk" % self.deviceid)
    else:
      partitions = []
      for p in PartitionDeviceIds():
        if re.compile("^%ss" % self.deviceid).search(p):
          partitions.append(Disk(p))
      return partitions
def Partitions ( self ) : if not self . wholedisk : # pylint: disable=no-member raise MacDiskError ( "%s is not a whole disk" % self . deviceid ) else : partitions = [ ] for p in PartitionDeviceIds ( ) : if re . compile ( "^%ss" % self . deviceid ) . search ( p ) : partitions . append ( Disk ( p ) ) return partitions