Skip to content

Commit

Permalink
compiler.embedding: support calling methods via RPC as well.
Browse files Browse the repository at this point in the history
  • Loading branch information
whitequark committed Aug 27, 2015
1 parent c62b16d commit f7c8625
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion artiq/compiler/embedding.py
Original file line number Diff line number Diff line change
@@ -504,7 +504,7 @@ def _quote_function(self, function, loc):
syscall=None)

def _quote(self, value, loc):
if inspect.isfunction(value):
if inspect.isfunction(value) or inspect.ismethod(value):
# It's a function. We need to translate the function and insert
# a reference to it.
function_name = self._quote_function(value, loc)

0 comments on commit f7c8625

Please sign in to comment.