/external/python/cpython3/Lib/test/test_warnings/data/ |
D | stacklevel.py | 5 def outer(message, stacklevel=1): argument 6 inner(message, stacklevel) 8 def inner(message, stacklevel=1): argument 9 warnings.warn(message, stacklevel=stacklevel)
|
D | import_warning.py | 3 warnings.warn('module-level warning', DeprecationWarning, stacklevel=2)
|
/external/python/cpython2/Lib/test/ |
D | warning_tests.py | 5 def outer(message, stacklevel=1): argument 6 inner(message, stacklevel) 8 def inner(message, stacklevel=1): argument 9 warnings.warn(message, stacklevel=stacklevel)
|
D | test_warnings.py | 262 warning_tests.inner("spam3", stacklevel=1) 265 warning_tests.outer("spam4", stacklevel=1) 269 warning_tests.inner("spam5", stacklevel=2) 272 warning_tests.outer("spam6", stacklevel=2) 275 warning_tests.outer("spam6.5", stacklevel=3) 279 warning_tests.inner("spam7", stacklevel=9999) 292 warning_tests.inner("spam8", stacklevel=1) 309 warning_tests.inner('spam9', stacklevel=1) 328 warning_tests.inner('spam10', stacklevel=1) 349 warning_tests.inner('spam11', stacklevel=1)
|
D | testall.py | 4 stacklevel=2)
|
/external/python/cpython3/Python/clinic/ |
D | _warnings.c.h | 16 Py_ssize_t stacklevel, PyObject *source); 26 Py_ssize_t stacklevel = 1; in warnings_warn() local 30 &message, &category, &stacklevel, &source)) { in warnings_warn() 33 return_value = warnings_warn_impl(module, message, category, stacklevel, source); in warnings_warn()
|
/external/autotest/client/common_lib/ |
D | deprecation.py | 14 def warn(deprecated_name, stacklevel=3): argument 21 stacklevel=stacklevel)
|
D | base_utils.py | 18 warnings.warn(deprecation.APIDeprecationWarning(__name__), stacklevel=2)
|
D | site_utils.py | 18 warnings.warn(deprecation.APIDeprecationWarning(__name__), stacklevel=2)
|
/external/python/cpython3/Lib/dbm/ |
D | dumb.py | 88 DeprecationWarning, stacklevel=4) 105 DeprecationWarning, stacklevel=4) 196 DeprecationWarning, stacklevel=2) 235 DeprecationWarning, stacklevel=2) 328 DeprecationWarning, stacklevel=2)
|
/external/python/cpython2/Include/ |
D | warnings.h | 13 #define PyErr_WarnPy3k(msg, stacklevel) \ argument 14 (Py_Py3kWarningFlag ? PyErr_WarnEx(PyExc_DeprecationWarning, msg, stacklevel) : 0)
|
/external/python/cpython2/Lib/ |
D | sre_parse.py | 269 FutureWarning, stacklevel=nested + 6) 272 DeprecationWarning, stacklevel=nested + 6) 318 RuntimeWarning, stacklevel=nested + 6) 327 FutureWarning, stacklevel=nested + 6) 330 DeprecationWarning, stacklevel=nested + 6) 611 RuntimeWarning, stacklevel=nested + 6) 678 RuntimeWarning, stacklevel=nested + 6) 741 DeprecationWarning, stacklevel=5) 832 DeprecationWarning, stacklevel=4)
|
D | warnings.py | 15 def warnpy3k(message, category=None, stacklevel=1): argument 23 warn(message, category, stacklevel+1) 197 def warn(message, category=None, stacklevel=1): argument 208 caller = sys._getframe(stacklevel)
|
/external/python/cpython3/Lib/importlib/ |
D | util.py | 153 DeprecationWarning, stacklevel=2) 172 DeprecationWarning, stacklevel=2) 199 DeprecationWarning, stacklevel=2)
|
D | abc.py | 72 stacklevel=2) 113 stacklevel=2)
|
/external/python/cpython3/Lib/ |
D | warnings.py | 291 def warn(message, category=None, stacklevel=1, source=None): argument 304 if stacklevel <= 1 or _is_internal_frame(sys._getframe(1)): 307 frame = sys._getframe(stacklevel) 311 for x in range(stacklevel-1): 522 warn(msg, category=RuntimeWarning, stacklevel=2, source=coro)
|
/external/python/cpython3/Lib/xml/etree/ |
D | ElementTree.py | 212 FutureWarning, stacklevel=2 286 DeprecationWarning, stacklevel=2 419 PendingDeprecationWarning, stacklevel=2 629 PendingDeprecationWarning, stacklevel=2 651 FutureWarning, stacklevel=2 673 FutureWarning, stacklevel=2 695 FutureWarning, stacklevel=2 717 FutureWarning, stacklevel=2 1452 DeprecationWarning, stacklevel=2)
|
/external/python/cpython2/Lib/xml/etree/ |
D | ElementTree.py | 254 FutureWarning, stacklevel=2 350 DeprecationWarning, stacklevel=2 486 PendingDeprecationWarning, stacklevel=2 681 PendingDeprecationWarning, stacklevel=2 702 FutureWarning, stacklevel=2 726 FutureWarning, stacklevel=2 747 FutureWarning, stacklevel=2 769 FutureWarning, stacklevel=2 1474 DeprecationWarning, stacklevel=2)
|
/external/python/cpython2/Lib/idlelib/ |
D | macosxSupport.py | 13 DeprecationWarning, stacklevel=2) 18 DeprecationWarning, stacklevel=2)
|
D | idlever.py | 10 w.warn(__doc__, DeprecationWarning, stacklevel=2)
|
/external/autotest/server/cros/ |
D | provision.py | 101 warnings.warn('fwro_version_to_label is deprecated', stacklevel=2) 114 warnings.warn('fwrw_version_to_label is deprecated', stacklevel=2)
|
/external/python/cpython3/Lib/test/test_warnings/ |
D | __init__.py | 12 from test.test_warnings.data import stacklevel as warning_tests 416 warning_tests.inner("spam3", stacklevel=1) 419 warning_tests.outer("spam4", stacklevel=1) 423 warning_tests.inner("spam5", stacklevel=2) 426 warning_tests.outer("spam6", stacklevel=2) 429 warning_tests.outer("spam6.5", stacklevel=3) 433 warning_tests.inner("spam7", stacklevel=9999) 457 warning_tests.inner("spam8", stacklevel=1) 474 warning_tests.inner('spam9', stacklevel=1) 493 warning_tests.inner('spam10', stacklevel=1) [all …]
|
/external/python/cpython2/Lib/plat-mac/Carbon/ |
D | __init__.py | 7 warnpy3k("In 3.x, the Carbon package is removed.", stacklevel=2)
|
/external/autotest/client/bin/ |
D | base_utils.py | 18 warnings.warn(deprecation.APIDeprecationWarning(__name__), stacklevel=2)
|
D | site_utils.py | 18 warnings.warn(deprecation.APIDeprecationWarning(__name__), stacklevel=2)
|