summaryrefslogtreecommitdiff
path: root/canonicalize/astTools.py
diff options
context:
space:
mode:
authorTimotej Lazar <timotej.lazar@fri.uni-lj.si>2018-01-22 11:18:17 +0100
committerTimotej Lazar <timotej.lazar@fri.uni-lj.si>2018-01-22 11:18:17 +0100
commit14541040e8cf92f66971a234a1c5e7e60cb11c85 (patch)
tree6b7f3f4d1bdea5d0d7f46712fa38f3e997c8f1e6 /canonicalize/astTools.py
parent6a399bb24af8cb1c4f104de479525a8c27ef2bbf (diff)
canonicalize: fix some compat issues for AST module
TODO check if this is OK
Diffstat (limited to 'canonicalize/astTools.py')
-rw-r--r--canonicalize/astTools.py4
1 files changed, 2 insertions, 2 deletions
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)