/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)
|
/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/cpython3/Python/clinic/ |
D | _warnings.c.h | 16 Py_ssize_t stacklevel, PyObject *source); 28 Py_ssize_t stacklevel = 1; in warnings_warn() local 56 stacklevel = ival; in warnings_warn() 64 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)
|
/external/python/cpython3/Modules/_io/clinic/ |
D | _iomodule.c.h | 294 _io_text_encoding_impl(PyObject *module, PyObject *encoding, int stacklevel); 301 int stacklevel = 2; in _io_text_encoding() local 310 stacklevel = _PyLong_AsInt(args[1]); in _io_text_encoding() 311 if (stacklevel == -1 && PyErr_Occurred()) { in _io_text_encoding() 315 return_value = _io_text_encoding_impl(module, encoding, stacklevel); in _io_text_encoding()
|
/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/cpython3/Lib/urllib/ |
D | parse.py | 994 DeprecationWarning, stacklevel=2) 1028 DeprecationWarning, stacklevel=2) 1049 DeprecationWarning, stacklevel=2) 1072 DeprecationWarning, stacklevel=2) 1085 DeprecationWarning, stacklevel=2) 1098 DeprecationWarning, stacklevel=2) 1121 DeprecationWarning, stacklevel=2) 1145 DeprecationWarning, stacklevel=2) 1160 DeprecationWarning, stacklevel=2) 1175 DeprecationWarning, stacklevel=2) [all …]
|
/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 | 154 DeprecationWarning, stacklevel=2) 174 DeprecationWarning, stacklevel=2) 202 DeprecationWarning, stacklevel=2)
|
/external/python/cpython3/Lib/ |
D | warnings.py | 287 def warn(message, category=None, stacklevel=1, source=None): argument 300 if stacklevel <= 1 or _is_internal_frame(sys._getframe(1)): 303 frame = sys._getframe(stacklevel) 307 for x in range(stacklevel-1): 506 warn(msg, category=RuntimeWarning, stacklevel=2, source=coro)
|
D | threading.py | 399 DeprecationWarning, stacklevel=2) 558 DeprecationWarning, stacklevel=2) 1207 DeprecationWarning, stacklevel=2) 1218 DeprecationWarning, stacklevel=2) 1229 DeprecationWarning, stacklevel=2) 1240 DeprecationWarning, stacklevel=2) 1443 DeprecationWarning, stacklevel=2) 1464 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)
|
/external/python/cpython3/Modules/clinic/ |
D | _asynciomodule.c.h | 681 _asyncio__get_event_loop_impl(PyObject *module, int stacklevel); 691 int stacklevel = 3; in _asyncio__get_event_loop() local 700 stacklevel = _PyLong_AsInt(args[0]); in _asyncio__get_event_loop() 701 if (stacklevel == -1 && PyErr_Occurred()) { in _asyncio__get_event_loop() 705 return_value = _asyncio__get_event_loop_impl(module, stacklevel); in _asyncio__get_event_loop()
|
/external/python/cpython3/Lib/lib2to3/ |
D | __init__.py | 7 stacklevel=2,
|
/external/python/cachetools/src/cachetools/ |
D | rr.py | 8 stacklevel=2,
|
D | ttl.py | 8 stacklevel=2,
|
D | lfu.py | 8 stacklevel=2,
|
D | mru.py | 8 stacklevel=2,
|
D | lru.py | 8 stacklevel=2,
|
D | cache.py | 8 stacklevel=2,
|
D | fifo.py | 8 stacklevel=2,
|