Skip to content

Commit 52edcd8

Browse files
committed
restore previous language_level line at cython_setup.py
1 parent 615af96 commit 52edcd8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎tools/cython_setup.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -421,11 +421,11 @@ def get_ext_modules(options):
421421
# > Unknown Extension options: 'cython_directives' warnings.warn(msg)
422422
cython_directives={
423423
# Any conversion to unicode must be explicit using .decode().
424+
"language_level": 2, # Yes, Py2 for all python versions.
424425
"c_string_type": "bytes",
425426
"c_string_encoding": "utf-8",
426427
"profile": ENABLE_PROFILING,
427428
"linetrace": ENABLE_LINE_TRACING,
428-
"language_level": "2",
429429
},
430430

431431
language="c++",

0 commit comments

Comments
 (0)