Skip to content

Commit

Permalink
moved imports to the top of file
Browse files Browse the repository at this point in the history
  • Loading branch information
builder555 committed Jan 24, 2024
1 parent cf2b946 commit b706056
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions backend/ws_server.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
import asyncio
import logging
import json
import http
import os
import mimetypes
import websockets
from websockets import WebSocketServerProtocol
import websockets.exceptions
from websockets.typing import Data
from pinecil import DeviceNotFoundException
Expand Down Expand Up @@ -91,12 +95,6 @@ def is_semver_greater(v1, v2):
return v1 > v2


import http
import os
import mimetypes
from websockets import WebSocketServerProtocol


def make_protocol(ui_path: str):
class HTTPServerProtocol(WebSocketServerProtocol):
async def process_request(self, path, request_headers):
Expand Down

0 comments on commit b706056

Please sign in to comment.