From ea66124317b81d6e0fb2d9ad3065cd810eff1f74 Mon Sep 17 00:00:00 2001 From: Krasimir Angelov Date: Wed, 25 Jan 2023 11:16:40 +0100 Subject: [PATCH] try with python 3.8 --- src/runtime/python/pypgf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/runtime/python/pypgf.c b/src/runtime/python/pypgf.c index 02bab1b0b..c5a06dffb 100644 --- a/src/runtime/python/pypgf.c +++ b/src/runtime/python/pypgf.c @@ -931,7 +931,7 @@ static PyGetSetDef PGF_getseters[] = { {NULL} /* Sentinel */ }; -#if PY_VERSION_HEX < 0x03070000 +#if PY_VERSION_HEX < 0x03080000 static void pgf_embed_funs(PgfItor* fn, PgfText* name, object value, PgfExn* err) @@ -1545,7 +1545,7 @@ MOD_INIT(pgf) TYPE_READY(pgf_ExprTypedType); TYPE_READY(pgf_ExprImplArgType); TYPE_READY(pgf_TypeType); -#if PY_VERSION_HEX >= 0x03070000 +#if PY_VERSION_HEX >= 0x03080000 TYPE_READY(pgf_EmbeddedGrammarType); #endif TYPE_READY(pgf_BracketType);