2
0
mirror of https://github.com/m-labs/artiq.git synced 2024-12-29 05:03:34 +08:00

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

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)