Fix support for older pyparsing version

This commit is contained in:
Alexander Larsson
2020-01-17 16:43:39 +01:00
parent c7cd1aeef5
commit 19456a2ce0

View File

@@ -1619,7 +1619,7 @@ class StructType(Type):
typeSpec = Forward()
basicType = oneOf(basic_types.keys()).setParseAction(lambda toks: BasicType(toks[0]))
basicType = oneOf(list(basic_types.keys())).setParseAction(lambda toks: BasicType(toks[0]))
variantType = Keyword("variant").setParseAction(lambda toks: VariantType())