From 14541040e8cf92f66971a234a1c5e7e60cb11c85 Mon Sep 17 00:00:00 2001 From: Timotej Lazar Date: Mon, 22 Jan 2018 11:18:17 +0100 Subject: canonicalize: fix some compat issues for AST module TODO check if this is OK --- canonicalize/astTools.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'canonicalize/astTools.py') diff --git a/canonicalize/astTools.py b/canonicalize/astTools.py index f644316..e67d908 100644 --- a/canonicalize/astTools.py +++ b/canonicalize/astTools.py @@ -1,4 +1,4 @@ -import ast, copy, pickle +import ast, copy, pickle, types from .tools import log from .namesets import * from .display import printFunction @@ -713,7 +713,7 @@ def eventualType(a): else: # Not op return bool elif type(a) == ast.Lambda: - return function + return types.LambdaType elif type(a) == ast.IfExp: l = eventualType(a.body) r = eventualType(a.orelse) -- cgit v1.2.1