This commit is contained in:
Petr Kalis 2020-08-19 21:10:51 +02:00
parent fe3cfc2442
commit 180035731b
11 changed files with 17 additions and 50 deletions

View file

@ -1,5 +1,3 @@
import asyncio
from pype.api import Logger
from wsrpc_aiohttp import WebSocketRoute
@ -30,5 +28,6 @@ class Photoshop(WebSocketRoute):
# client functions
async def read(self):
log.debug("photoshop.read client calls server server calls Photo client")
log.debug("photoshop.read client calls server server calls "
"Photo client")
return await self.socket.call('Photoshop.read')

View file

@ -105,7 +105,7 @@ class WebSocketServer():
@staticmethod
def get_instance():
if WebSocketServer._instance == None:
if WebSocketServer._instance is None:
WebSocketServer()
return WebSocketServer._instance