def setWarningMethod(newMethod):
    global warn
    warn = newMethod
Set the warning method to use to record deprecation warnings.
dataset/ETHPy150Open kuri65536/python-for-android/python-modules/twisted/twisted/python/deprecate.py/setWarningMethod