Home
last modified time | relevance | path

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

123456789

/external/python/cpython2/Lib/test/
Dwarning_tests.py5 def outer(message, stacklevel=1): argument
6 inner(message, stacklevel)
8 def inner(message, stacklevel=1): argument
9 warnings.warn(message, stacklevel=stacklevel)
Dtest_warnings.py262 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)
Dtestall.py4 stacklevel=2)
/external/python/cpython3/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)
/external/python/cpython3/Python/clinic/
D_warnings.c.h16 Py_ssize_t stacklevel, PyObject *source);
28 Py_ssize_t stacklevel = 1; in warnings_warn() local
61 stacklevel = ival; in warnings_warn()
69 return_value = warnings_warn_impl(module, message, category, stacklevel, source); in warnings_warn()
/external/autotest/client/common_lib/
Ddeprecation.py14 def warn(deprecated_name, stacklevel=3): argument
21 stacklevel=stacklevel)
Dsite_utils.py18 warnings.warn(deprecation.APIDeprecationWarning(__name__), stacklevel=2)
Dbase_utils.py18 warnings.warn(deprecation.APIDeprecationWarning(__name__), stacklevel=2)
/external/python/cpython2/Include/
Dwarnings.h13 #define PyErr_WarnPy3k(msg, stacklevel) \ argument
14 (Py_Py3kWarningFlag ? PyErr_WarnEx(PyExc_DeprecationWarning, msg, stacklevel) : 0)
/external/python/cpython3/Lib/asyncio/
Dlocks.py86 DeprecationWarning, stacklevel=2)
182 DeprecationWarning, stacklevel=2)
249 DeprecationWarning, stacklevel=2)
380 DeprecationWarning, stacklevel=2)
443 DeprecationWarning, stacklevel=2)
Dtasks.py401 DeprecationWarning, stacklevel=2)
409 DeprecationWarning, stacklevel=2)
439 DeprecationWarning, stacklevel=2)
588 DeprecationWarning, stacklevel=2)
644 DeprecationWarning, stacklevel=2)
756 DeprecationWarning, stacklevel=2)
875 DeprecationWarning, stacklevel=2)
/external/python/cryptography/src/cryptography/hazmat/primitives/asymmetric/
Dutils.py22 stacklevel=2
37 stacklevel=2
/external/python/cpython3/Lib/urllib/
Dparse.py977 DeprecationWarning, stacklevel=2)
1011 DeprecationWarning, stacklevel=2)
1032 DeprecationWarning, stacklevel=2)
1055 DeprecationWarning, stacklevel=2)
1068 DeprecationWarning, stacklevel=2)
1081 DeprecationWarning, stacklevel=2)
1104 DeprecationWarning, stacklevel=2)
1128 DeprecationWarning, stacklevel=2)
1143 DeprecationWarning, stacklevel=2)
1158 DeprecationWarning, stacklevel=2)
[all …]
/external/python/cpython2/Lib/
Dsre_parse.py269 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)
Dwarnings.py15 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)
Dstatvfs.py3 warnpy3k("the statvfs module has been removed in Python 3.0", stacklevel=2)
/external/python/cpython3/Lib/importlib/
Dutil.py153 DeprecationWarning, stacklevel=2)
172 DeprecationWarning, stacklevel=2)
199 DeprecationWarning, stacklevel=2)
/external/python/cpython3/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)
/external/python/cpython2/Lib/idlelib/
DmacosxSupport.py13 DeprecationWarning, stacklevel=2)
18 DeprecationWarning, stacklevel=2)
Didlever.py10 w.warn(__doc__, DeprecationWarning, stacklevel=2)
/external/python/cpython3/Lib/lib2to3/
D__init__.py7 stacklevel=2,
/external/python/cpython2/Lib/plat-mac/Carbon/
D__init__.py7 warnpy3k("In 3.x, the Carbon package is removed.", stacklevel=2)
/external/autotest/client/bin/
Dbase_utils.py18 warnings.warn(deprecation.APIDeprecationWarning(__name__), stacklevel=2)
Dsite_utils.py18 warnings.warn(deprecation.APIDeprecationWarning(__name__), stacklevel=2)

123456789