mirror of
https://github.com/koush/scrypted.git
synced 2026-08-13 16:40:37 +01:00
server: potential process leak fix
This commit is contained in:
9
server/python/plugin-repl.py
Normal file
9
server/python/plugin-repl.py
Normal file
@@ -0,0 +1,9 @@
|
||||
from asyncore import write
|
||||
import code
|
||||
|
||||
class ScryptedConsole(code.InteractiveConsole):
|
||||
def write(self, data: str) -> None:
|
||||
return super().write(data)
|
||||
|
||||
def raw_input(self, prompt: str) -> str:
|
||||
return super().raw_input(prompt=prompt)
|
||||
Reference in New Issue
Block a user