#NEWLINE# def repeatUntilQueued( on ) : #NEWLINE# #INDENT# ret = ( 0 , 0 ) #NEWLINE# while ( ( not ret [ 0 ] ) or ( not ret [ 1 ] ) ) : #NEWLINE# #INDENT# ret = dobot . PumpOn ( on ) #NEWLINE# #UNINDENT# ret = ( 0 , 0 ) #NEWLINE# while ( ( not on [ 0 ] ) or ( not ret [ 1 ] ) ) : #NEWLINE# #INDENT# ret = dobot . ValveOn ( on )