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)