Skip to content

Commit

Permalink
fix compile error for vars(object) missing implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
eliasdorneles committed Nov 11, 2017
1 parent c218fd4 commit 395e5be
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions voc/python/ast.py
Original file line number Diff line number Diff line change
Expand Up @@ -1911,9 +1911,9 @@ def visit_Call(self, node):
)
elif node.args:
self.context.add_opcodes(
java.New('org/python/exceptions/TypeError'),
JavaOpcodes.LDC_W(node.func.id + "() takes no arguments (" + len(node.args) + " given)"),
java.Init('org/python/exceptions/TypeError', 'Ljava/lang/String;'),
java.New('org/python/exceptions/NotImplementedError'),
JavaOpcodes.LDC_W(node.func.id + "(object) not yet implemented"),
java.Init('org/python/exceptions/NotImplementedError', 'Ljava/lang/String;'),
JavaOpcodes.ATHROW()
)
else:
Expand Down

0 comments on commit 395e5be

Please sign in to comment.