aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/tools/cython/Cython/Compiler/Builtin.py
diff options
context:
space:
mode:
authorshadchin <shadchin@yandex-team.com>2023-07-22 00:59:02 +0300
committershadchin <shadchin@yandex-team.com>2023-07-22 00:59:02 +0300
commit7ecf6c16ab762d4ed40a90ea329eebeb1b8cbca0 (patch)
tree13f625aacca47c9885d8fa31ba97151706ef63bd /contrib/tools/cython/Cython/Compiler/Builtin.py
parent91a8278c558cb2002069ca54215c83568ba6826e (diff)
downloadydb-7ecf6c16ab762d4ed40a90ea329eebeb1b8cbca0.tar.gz
Update Cython to 0.29.36
Diffstat (limited to 'contrib/tools/cython/Cython/Compiler/Builtin.py')
-rw-r--r--contrib/tools/cython/Cython/Compiler/Builtin.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/contrib/tools/cython/Cython/Compiler/Builtin.py b/contrib/tools/cython/Cython/Compiler/Builtin.py
index e0d203ae02..c3e202e001 100644
--- a/contrib/tools/cython/Cython/Compiler/Builtin.py
+++ b/contrib/tools/cython/Cython/Compiler/Builtin.py
@@ -417,9 +417,10 @@ def init_builtins():
init_builtin_types()
init_builtin_funcs()
- builtin_scope.declare_var(
+ entry = builtin_scope.declare_var(
'__debug__', PyrexTypes.c_const_type(PyrexTypes.c_bint_type),
- pos=None, cname='(!Py_OptimizeFlag)', is_cdef=True)
+ pos=None, cname='__pyx_assertions_enabled()', is_cdef=True)
+ entry.utility_code = UtilityCode.load_cached("AssertionsEnabled", "Exceptions.c")
global list_type, tuple_type, dict_type, set_type, frozenset_type
global bytes_type, str_type, unicode_type, basestring_type, slice_type