Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F9342341
D1735.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Subscribers
None
D1735.diff
View Options
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
Details
Attached
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
Attached To
D1735: api: properly use deprecated for class renamings
Event Timeline
Log In to Comment