Skip to content

Commit

Permalink
[fix] remove useless imports
Browse files Browse the repository at this point in the history
  • Loading branch information
mosquito committed Mar 14, 2019
1 parent 17b1645 commit b53643e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 4 additions & 1 deletion docs/source/examples/server.py
Expand Up @@ -50,7 +50,10 @@ async def getJoke(self):
joke = choice(self.JOKES)

result = await self.socket.proxy.joke(joke=joke)
log.info('Client said that was "{0}"'.format('awesome' if result else 'awful'))
log.info(
'Client said that was "%s"',
('awesome' if result else 'awful')
)
return 'Cool' if result else 'Hmm.. Try again.'


Expand Down
5 changes: 2 additions & 3 deletions wsrpc_aiohttp/websocket/handler.py
Expand Up @@ -3,15 +3,14 @@
import logging
import uuid
from collections import defaultdict
from functools import partial

import aiohttp
from aiohttp import web, WSMessage, WebSocketError
from aiohttp import web, WebSocketError
from aiohttp.abc import AbstractView

from .common import WSRPCBase, ClientException
from .route import WebSocketRoute
from .tools import Lazy, dumps, loads
from .tools import Lazy, dumps

global_log = logging.getLogger("wsrpc")
log = logging.getLogger("wsrpc.handler")
Expand Down

0 comments on commit b53643e

Please sign in to comment.