Home
last modified time | relevance | path

Searched refs:stacklevel (Results 1 – 25 of 81) sorted by relevance

1234

/third_party/python/Lib/test/test_warnings/data/
Dstacklevel.py5 def outer(message, stacklevel=1): argument
6 inner(message, stacklevel)
8 def inner(message, stacklevel=1): argument
9 warnings.warn(message, stacklevel=stacklevel)
Dimport_warning.py3 warnings.warn('module-level warning', DeprecationWarning, stacklevel=2)
/third_party/python/Python/clinic/
D_warnings.c.h16 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()
/third_party/python/Modules/_io/clinic/
D_iomodule.c.h294 _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()
/third_party/python/Lib/urllib/
Dparse.py994 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 …]
/third_party/python/Lib/importlib/
Dutil.py154 DeprecationWarning, stacklevel=2)
174 DeprecationWarning, stacklevel=2)
202 DeprecationWarning, stacklevel=2)
Dabc.py86 stacklevel=2)
127 stacklevel=2)
D__init__.py83 DeprecationWarning, stacklevel=2)
/third_party/jinja2/
Dutils.py483 stacklevel=2,
497 stacklevel=2,
507 stacklevel=2,
523 stacklevel=2,
735 stacklevel=2,
/third_party/skia/third_party/externals/jinja2/
Dutils.py483 stacklevel=2,
497 stacklevel=2,
507 stacklevel=2,
523 stacklevel=2,
735 stacklevel=2,
/third_party/python/Lib/
Dwarnings.py287 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)
Dthreading.py399 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)
Dio.py69 DeprecationWarning, stacklevel=2)
Dssl.py387 stacklevel=2
492 stacklevel=2
536 stacklevel=2
943 stacklevel=2
1162 stacklevel=2
1426 stacklevel=2
/third_party/python/Lib/lib2to3/
D__init__.py7 stacklevel=2,
/third_party/python/Lib/sqlite3/
D__init__.py69 warnings.warn(msg, DeprecationWarning, stacklevel=2)
Ddbapi2.py98 warnings.warn(msg, DeprecationWarning, stacklevel=2)
/third_party/python/Modules/clinic/
D_asynciomodule.c.h681 _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()
/third_party/markupsafe/
D_native.py73 stacklevel=2,
/third_party/python/Lib/test/support/
Dos_helper.py275 RuntimeWarning, stacklevel=4)
392 RuntimeWarning, stacklevel=3)
425 RuntimeWarning, stacklevel=3)
/third_party/protobuf/python/google/protobuf/pyext/
Ddescriptor.h99 bool _CalledFromGeneratedFile(int stacklevel);
/third_party/python/Lib/asyncio/
Devents.py765 def _get_event_loop(stacklevel=3): argument
771 DeprecationWarning, stacklevel=stacklevel)
/third_party/grpc/src/python/grpcio/grpc/experimental/
D__init__.py69 warnings.warn(msg, ExperimentalApiWarning, stacklevel=2 + stack_offset)
/third_party/python/Misc/NEWS.d/
D3.5.0rc3.rst8 warnings.warn(stacklevel=) parameter.
/third_party/python/Lib/test/test_warnings/
D__init__.py15 from test.test_warnings.data import stacklevel as warning_tests
426 warning_tests.inner("spam3", stacklevel=1)
429 warning_tests.outer("spam4", stacklevel=1)
433 warning_tests.inner("spam5", stacklevel=2)
436 warning_tests.outer("spam6", stacklevel=2)
439 warning_tests.outer("spam6.5", stacklevel=3)
443 warning_tests.inner("spam7", stacklevel=9999)

1234