def partname_to_device(part):
 return os.path.join(os.sep, 'dev', part)

def partname_to_device ( part ) : return os . path . join ( os . sep , 'dev' , part )
converts a partition name to its associated device .