forked from M-Labs/artiq
1
0
Fork 0

compiler.embedding: support calling methods via RPC as well.

This commit is contained in:
whitequark 2015-08-27 05:56:46 -05:00
parent c62b16d5e1
commit f7c8625f61
1 changed files with 1 additions and 1 deletions

View File

@ -504,7 +504,7 @@ class Stitcher:
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)