diff options
author | Stefan Behnel <stefan_ml@behnel.de> | 2021-07-26 15:36:53 +0200 |
---|---|---|
committer | Stefan Behnel <stefan_ml@behnel.de> | 2021-07-26 15:36:53 +0200 |
commit | 4d3cb7f1972386fa415695d86ed2233567159e13 (patch) | |
tree | cf773a156088f149647921d058bc0565f084fec2 | |
parent | 5332898e97102afde24064085633a96d2f7812ca (diff) | |
download | cython-ci_compile_all.tar.gz |
Fix compilation of "ParseTreeTransforms" in Py2. It previously tried to compare the 'directivetype' to 'str', which misses Py2 str when compiling with language level 3.ci_compile_all
-rw-r--r-- | Cython/Compiler/ParseTreeTransforms.pxd | 2 | ||||
-rw-r--r-- | Cython/Compiler/ParseTreeTransforms.py | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/Cython/Compiler/ParseTreeTransforms.pxd b/Cython/Compiler/ParseTreeTransforms.pxd index 4026429ac..c6a7b2ddb 100644 --- a/Cython/Compiler/ParseTreeTransforms.pxd +++ b/Cython/Compiler/ParseTreeTransforms.pxd @@ -1,4 +1,4 @@ -# cython: language_level=3 +# cython: language_level=3str cimport cython diff --git a/Cython/Compiler/ParseTreeTransforms.py b/Cython/Compiler/ParseTreeTransforms.py index aa6d05b36..a959c880e 100644 --- a/Cython/Compiler/ParseTreeTransforms.py +++ b/Cython/Compiler/ParseTreeTransforms.py @@ -1,3 +1,5 @@ +# cython: language_level=3str + from __future__ import absolute_import import cython |