Deprecated erpc like the TODO said

This commit is contained in:
Ryan Williams
2009-12-04 18:10:33 -08:00
parent 6f661db4a9
commit d59bfbfcf4

View File

@@ -99,9 +99,11 @@ def execute(meth,*args, **kwargs):
rv = erecv(e)
return rv
## TODO deprecate
erpc = execute
def erpc(meth, *args, **kwargs):
import warnings
warnings.warn("erpc is deprecated. Call execute instead.",
DeprecationWarning, stacklevel=2)
execute(meth, *args, **kwargs)
def proxy_call(autowrap, f, *args, **kwargs):