浏览代码

maint: reformat code

wangweimin 4 年之前
父节点
当前提交
fb12167fa6

+ 0 - 3
pywebio/session/coroutinebased.py

@@ -1,8 +1,6 @@
 import asyncio
 import logging
-import sys
 import threading
-import traceback
 from contextlib import contextmanager
 from functools import partial
 
@@ -159,7 +157,6 @@ class CoroutineBasedSession(Session):
 
         self._cleanup()
 
-
     def register_callback(self, callback, mutex_mode=False):
         """ 向Session注册一个回调函数,返回回调id
 

+ 0 - 3
pywebio/session/threadbased.py

@@ -1,8 +1,6 @@
 import logging
 import queue
-import sys
 import threading
-import traceback
 from functools import wraps
 
 from .base import Session
@@ -187,7 +185,6 @@ class ThreadBasedSession(Session):
 
         self._cleanup()
 
-
     def _activate_callback_env(self):
         """激活回调功能
 

+ 1 - 1
webiojs/src/handlers/output.ts

@@ -104,7 +104,7 @@ export class OutputHandler implements CommandHandler {
                     old.empty();
                     return;
                 }else{
-                    return
+                    return;
                 }
             }
 

+ 1 - 1
webiojs/src/models/input/file.ts

@@ -68,7 +68,7 @@ export class File extends InputItem {
                         'valid_status': false,
                         'invalid_feedback': `文件总大小超过限制: 文件总大小不超过${that._formate_size(that.spec.max_total_size)}`
                     });
-                    return
+                    return;
                 }
                 if (!that.valid) return;
                 that.update_input_helper(-1, {'valid_status': 0});

+ 0 - 1
webiojs/src/utils.ts

@@ -1,5 +1,4 @@
 // Indexable Types
-import {state} from "./state";
 
 interface Dict {
     [index: string]: any;