From 3f3ae86993943c99314e65bce6a6922c3fdae486 Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Wed, 25 Dec 2024 23:02:51 +0100 Subject: [PATCH] [Python compatibility] Removed `@classmethod @property` usages. The construct is no longer supported in Python 3.13. --- platypush/backend/http/app/ws/events.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/platypush/backend/http/app/ws/events.py b/platypush/backend/http/app/ws/events.py index 2bc830a590..6dba5c99f3 100644 --- a/platypush/backend/http/app/ws/events.py +++ b/platypush/backend/http/app/ws/events.py @@ -11,20 +11,19 @@ class WSEventProxy(WSRoute): """ def __init__(self, *args, **kwargs): - super().__init__(*args, subscriptions=[self.events_channel], **kwargs) + super().__init__(*args, subscriptions=[self._get_events_channel()], **kwargs) @classmethod def app_name(cls) -> str: return 'events' @classmethod - @property - def events_channel(cls) -> str: + def _get_events_channel(cls) -> str: return cls.get_channel('events') @classmethod def publish(cls, data: MessageType, *_) -> None: - super().publish(data, cls.events_channel) + super().publish(data, cls._get_events_channel()) def on_message(self, message): try: