summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Behnel <stefan_ml@behnel.de>2021-07-26 15:36:53 +0200
committerStefan Behnel <stefan_ml@behnel.de>2021-07-26 15:36:53 +0200
commit4d3cb7f1972386fa415695d86ed2233567159e13 (patch)
treecf773a156088f149647921d058bc0565f084fec2
parent5332898e97102afde24064085633a96d2f7812ca (diff)
downloadcython-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.pxd2
-rw-r--r--Cython/Compiler/ParseTreeTransforms.py2
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