From 3cde7284fdc63413a1e0aa4b5ac7227c1d7d227c Mon Sep 17 00:00:00 2001 From: Antoine Millet Date: Fri, 9 Sep 2011 14:20:54 +0200 Subject: [PATCH] Whitespaces. --- sjrpc/utils/proxies.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/sjrpc/utils/proxies.py b/sjrpc/utils/proxies.py index 242f98f..be35613 100644 --- a/sjrpc/utils/proxies.py +++ b/sjrpc/utils/proxies.py @@ -6,17 +6,17 @@ from sjrpc.core.exceptions import RpcError class ConnectionProxy(object): ''' Create a new call proxy for the connection passed in arguments. - + Usage example: - + >>> proxy = ConnectionProxy(conn) >>> ret = proxy.existing_function() - - If exception is raised by the function, the proxy tries to get the - exception class in *__builtins__* to re-raise it. If exception class + + If exception is raised by the function, the proxy tries to get the + exception class in *__builtins__* to re-raise it. If exception class is not found in *__builtins__*, the exception raised is the original :exc:`RpcError`: - + >>> proxy.unknown_function() [Traceback] NameError: remote name 'unknown_function' is not defined @@ -24,7 +24,7 @@ class ConnectionProxy(object): >>> proxy['myfunc']() # You can also use this syntax ... ''' - + def __init__(self, connection): self.connection = connection @@ -40,7 +40,7 @@ class ConnectionProxy(object): raise err else: return returned - + return func def __getitem__(self, name): -- GitLab