@@ -215,7 +215,6 @@ async def set_licensing_info(req):
215215
216216 # Start MATLAB if licensing is complete
217217 if state .is_licensed () is True and not isinstance (state .error , LicensingError ):
218-
219218 # Start MATLAB
220219 await state .start_matlab (restart_matlab = True )
221220
@@ -323,7 +322,7 @@ def make_static_route_table(app):
323322
324323 table = {}
325324
326- for ( mod , parent ) in [
325+ for mod , parent in [
327326 (gui .__name__ , "" ),
328327 (gui .static .__name__ , "/static" ),
329328 (gui .static .css .__name__ , "/static/css" ),
@@ -333,7 +332,6 @@ def make_static_route_table(app):
333332 for name in resource_listdir (mod , "" ):
334333 if not resource_isdir (mod , name ):
335334 if name != "__init__.py" :
336-
337335 # Special case for manifest.json
338336 if "manifest.json" in name :
339337 content_type = "application/manifest+json"
@@ -387,7 +385,6 @@ async def matlab_view(req):
387385 async with aiohttp .ClientSession (
388386 cookies = req .cookies , connector = aiohttp .TCPConnector (verify_ssl = False )
389387 ) as client_session :
390-
391388 async with client_session .ws_connect (
392389 matlab_base_url + req .path_qs ,
393390 ) as ws_client :
@@ -448,7 +445,6 @@ async def wsforward(ws_from, ws_to):
448445 allow_redirects = False ,
449446 data = req_body ,
450447 ) as res :
451-
452448 headers = res .headers .copy ()
453449 body = await res .read ()
454450 headers .update (req .app ["settings" ]["mwi_custom_http_headers" ])
0 commit comments