Skip to content

Commit 1038f1c

Browse files
authored
Merge pull request #679 from chrisburr/remove-asyncGen
[5.0] Remove legacy asyncGen function
2 parents f131bac + 8713e34 commit 1038f1c

2 files changed

Lines changed: 1 addition & 6 deletions

File tree

src/WebAppDIRAC/Lib/WebHandler.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -102,10 +102,6 @@ def asyncWithCallback(method):
102102
return tornado.web.asynchronous(method)
103103

104104

105-
def asyncGen(method):
106-
return gen.coroutine(method)
107-
108-
109105
def defaultEncoder(data):
110106
"""Encode
111107

src/WebAppDIRAC/WebApp/handler/RegistryManagerHandler.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import json
22
from diraccfg import CFG
33

4-
from WebAppDIRAC.Lib.WebHandler import WebSocketHandler, asyncGen
4+
from WebAppDIRAC.Lib.WebHandler import WebSocketHandler
55
from DIRAC.ConfigurationSystem.Client.ConfigurationClient import ConfigurationClient
66
from DIRAC import gConfig, gLogger
77
from DIRAC.ConfigurationSystem.private.Modificator import Modificator
@@ -14,7 +14,6 @@ class RegistryManagerHandler(WebSocketHandler):
1414
def on_open(self):
1515
self.__configData = {}
1616

17-
@asyncGen
1817
def on_message(self, msg):
1918

2019
self.log.info(f"RECEIVED {msg}")

0 commit comments

Comments
 (0)