Commit 0b81c765 authored by Stefan Behnel's avatar Stefan Behnel

Avoid deprecation warning in Cython-Inline by setting the default language...

Avoid deprecation warning in Cython-Inline by setting the default language level to "3str" if none is provided.
parent a87f498d
......@@ -178,6 +178,8 @@ def cython_inline(code, get_type=unsafe_type,
print("Could not parse code as a string (to extract unbound symbols).")
cython_compiler_directives = dict(cython_compiler_directives or {})
if language_level is None and 'language_level' not in cython_compiler_directives:
language_level = '3str'
if language_level is not None:
cython_compiler_directives['language_level'] = language_level
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment