#NEWLINE# def get_device_name_prefix( device_name ) : #NEWLINE# #INDENT# 'Return device name without device number.\n\n    /dev/sda1 -> /dev/sd\n    /dev/vda -> /dev/vd\n    ' #NEWLINE# dev_num_pos = 0 #NEWLINE# while ( '0' <= device_name [ ( dev_num_pos - 1 ) ] <= '9' ) : #NEWLINE# #INDENT# dev_num_pos -= 1 #NEWLINE# #UNINDENT# return device_name [ : ( dev_num_pos - 1 ) ]