Searched refs:warning_class (Results 1 – 4 of 4) sorted by relevance
/external/python/cryptography/src/cryptography/ |
D | utils.py | 124 def __init__(self, value, message, warning_class): argument 127 self.warning_class = warning_class 137 warnings.warn(obj.message, obj.warning_class, stacklevel=2) 147 warnings.warn(obj.message, obj.warning_class, stacklevel=2) 155 def deprecated(value, module_name, message, warning_class): argument 159 return _DeprecatedValue(value, message, warning_class)
|
/external/python/cryptography/tests/ |
D | test_warnings.py | 24 warning_class=DeprecationWarning 30 warning_class=PendingDeprecationWarning, 58 warning_class=DeprecationWarning 64 warning_class=PendingDeprecationWarning,
|
/external/python/cpython2/Lib/test/ |
D | test_warnings.py | 558 path, line, warning_class, message = first_line_parts 561 self.assertEqual(warning_class, ' ' + UserWarning.__name__)
|
/external/python/cpython3/Lib/test/test_warnings/ |
D | __init__.py | 753 path, line, warning_class, message = first_line_parts 756 self.assertEqual(warning_class, ' ' + UserWarning.__name__)
|