summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichele Calgaro <[email protected]>2023-01-26 19:32:00 +0900
committerMichele Calgaro <[email protected]>2023-01-26 19:32:00 +0900
commit79f67e722a2ef1590b4eda32c010acfc258e5df6 (patch)
tree874223afaa2415c2e0ecfdce3f41458b2cb07d1a
parente0c6c2a79a668437e9c15b9e193742babeb9b8fa (diff)
downloadpytdeextensions-79f67e722a2ef1590b4eda32c010acfc258e5df6.tar.gz
pytdeextensions-79f67e722a2ef1590b4eda32c010acfc258e5df6.zip
Minor improvement to python version detection condition.r14.1.0
Signed-off-by: Michele Calgaro <[email protected]>
-rw-r--r--src/pythonize.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pythonize.cpp b/src/pythonize.cpp
index 9d41f69..2315d75 100644
--- a/src/pythonize.cpp
+++ b/src/pythonize.cpp
@@ -44,7 +44,7 @@ Pythonize::Pythonize ()
{
Py_Initialize();
-#if PY_MAJOR_VERSION == 3 && PY_MINOR_VERSION <= 6
+#if PY_VERSION_HEX < 0x03070000
// initialize thread support
PyEval_InitThreads();
#endif