Commit 94f4ed29 authored by Igor Dejanovic's avatar Igor Dejanovic

Small change in type comparison

parent 956926b3
......@@ -1043,7 +1043,7 @@ class ParserPython(Parser):
__rule_cache[rule] = CrossRef(rule)
curr_expr = expression
while type(curr_expr) == types.FunctionType:
while type(curr_expr) is types.FunctionType:
# If function directly returns another function
# go into until non-function is returned.
curr_expr = curr_expr()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment