Page MenuHomeSoftware Heritage

D1735.diff
No OneTemporary

D1735.diff

diff --git a/swh/core/api/__init__.py b/swh/core/api/__init__.py
--- a/swh/core/api/__init__.py
+++ b/swh/core/api/__init__.py
@@ -329,14 +329,19 @@
return encode_data_server(obj_meth(**decode_request(request)))
-SWHServerAPIApp = deprecated(
- version='0.0.64',
- reason='Use the RPCServerApp instead')(RPCServerApp)
+@deprecated(version='0.0.64',
+ reason='Use the RPCServerApp instead')
+class SWHServerAPIApp(RPCServerApp):
+ pass
+
-MetaSWHRemoteAPI = deprecated(
- version='0.0.64',
- reason='Use the MetaRPCClient instead')(MetaRPCClient)
+@deprecated(version='0.0.64',
+ reason='Use the MetaRPCClient instead')
+class MetaSWHRemoteAPI(MetaRPCClient):
+ pass
-SWHRemoteAPI = deprecated(
- version='0.0.64',
- reason='Use the RPCClient instead')(RPCClient)
+
+@deprecated(version='0.0.64',
+ reason='Use the RPCClient instead')
+class SWHRemoteAPI(RPCClient):
+ pass
diff --git a/swh/core/api/asynchronous.py b/swh/core/api/asynchronous.py
--- a/swh/core/api/asynchronous.py
+++ b/swh/core/api/asynchronous.py
@@ -55,6 +55,7 @@
super().__init__(*args, middlewares=middlewares, **kwargs)
-SWHRemoteAPI = deprecated(
- version='0.0.64',
- reason='Use the RPCServerApp instead')(RPCServerApp)
+@deprecated(version='0.0.64',
+ reason='Use the RPCServerApp instead')
+class SWHRemoteAPI(RPCServerApp):
+ pass

File Metadata

Mime Type
text/plain
Expires
Thu, Jul 3, 12:38 PM (2 w, 3 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3216139

Event Timeline