#NEWLINE# def cut( menu ) : #NEWLINE# #INDENT# s = scope ( menu ) #NEWLINE# with Gaffer . UndoContext ( s . script ) : #NEWLINE# #INDENT# s . script . cut ( menu . parent , s . script . selection ( ) )