[autotest] Clean up route_rpc_to_master docstring
BUG=None
TEST=None
Change-Id: I577f9119dad3d5aa27c02331efd04d1e042dff9a
Reviewed-on: https://chromium-review.googlesource.com/419086
Commit-Ready: Allen Li <ayatane@chromium.org>
Tested-by: Allen Li <ayatane@chromium.org>
Reviewed-by: Prathmesh Prabhu <pprabhu@chromium.org>
diff --git a/frontend/afe/rpc_utils.py b/frontend/afe/rpc_utils.py
index fdb60a4..367c5cf 100644
--- a/frontend/afe/rpc_utils.py
+++ b/frontend/afe/rpc_utils.py
@@ -1308,15 +1308,14 @@
@wraps(func)
def replacement(*args, **kwargs):
- """
- We need a special care when decorating an RPC that can be called
- directly using positional arguments. One example is
- rpc_interface.create_job().
- rpc_interface.create_job_page_handler() calls the function using
- positional and keyword arguments.
- Since frontend.RpcClient.run() takes only keyword arguments for
- an RPC, positional arguments of the RPC function need to be
- transformed to key-value pair (dictionary type).
+ """We need special handling when decorating an RPC that can be called
+ directly using positional arguments.
+
+ One example is rpc_interface.create_job().
+ rpc_interface.create_job_page_handler() calls the function using both
+ positional and keyword arguments. Since frontend.RpcClient.run()
+ takes only keyword arguments for an RPC, positional arguments of the
+ RPC function need to be transformed into keyword arguments.
"""
kwargs = _convert_to_kwargs_only(func, args, kwargs)
if server_utils.is_shard():