#NEWLINE# def get_volumes( self ) : #NEWLINE# #INDENT# 'Recursively gets a list of all subvolumes and the current volume.' #NEWLINE# if self . volumes : #NEWLINE# #INDENT# volumes = [ ] #NEWLINE# for v in self . volumes : #NEWLINE# #INDENT# volumes . extend ( v . get_volumes ( ) ) #NEWLINE# #UNINDENT# volumes . append ( self ) #NEWLINE# return volumes #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return [ self ]