Browse Source

Fix a bug in the intrinsics

This is all your fault, pylint!
jonathanvdc 8 years ago
parent
commit
951df48c70
1 changed files with 6 additions and 1 deletions
  1. 6 1
      kernel/modelverse_jit/intrinsics.py

+ 6 - 1
kernel/modelverse_jit/intrinsics.py

@@ -71,7 +71,12 @@ MISC_INTRINSICS = {
 
     # State creation
     'create_node' : tree_ir.CreateNodeInstruction,
-    'create_edge' : tree_ir.CreateEdgeInstruction,
+    'create_edge' :
+        # Lambda is totally necessary here, pylint.
+        # You totally dropped the ball on this one.
+        # pylint: disable=I0011,W0108
+        lambda a, b:
+        tree_ir.CreateEdgeInstruction(a, b),
     'create_value' :
         lambda a:
         tree_ir.CreateNodeWithValueInstruction(