#NEWLINE# def setWarningMethod( newMethod ) : #NEWLINE# #INDENT# '\n    Set the warning method to use to record deprecation warnings.\n\n    The callable should take message, category and stacklevel. The return\n    value is ignored.\n    ' #NEWLINE# global warn #NEWLINE# warn = newMethod