warnings.catch_warnings.__init__

catch_warnings.__init__(record=False, module=None)[source]

Specify whether to record warnings and if an alternative module should be used other than sys.modules[‘warnings’].

For compatibility with Python 3.0, please consider all arguments to be keyword-only.