gh-129842: warnings.py: Remove obsolete requirement reference (GH-129845)

This commit is contained in:
Stan Ulbrych 2025-02-08 12:57:17 +00:00 committed by GitHub
parent 80b9e79d84
commit 0f128b9435
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -473,9 +473,6 @@ class catch_warnings(object):
"""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.
"""
self._record = record
self._module = sys.modules['warnings'] if module is None else module