cleanup
This commit is contained in:
1 parent
a60adb2810
commit
f615daf250
1 file changed
+3
-2
@@ -1,9 +1,9 @@
|
||||
#!/usr/bin/env python3
|
||||
|
||||
from glob import glob
|
||||
from io import StringIO
|
||||
from contextlib import redirect_stdout, redirect_stderr
|
||||
from functools import lru_cache
|
||||
from glob import glob
|
||||
from io import StringIO
|
||||
|
||||
import http.server
|
||||
import socketserver
|
||||
@@ -43,6 +43,7 @@ class ScriptServer(http.server.SimpleHTTPRequestHandler):
|
||||
print(msg)
|
||||
|
||||
|
||||
|
||||
def run_script(fn):
|
||||
sio = StringIO()
|
||||
with redirect_stdout(sio), redirect_stderr(sio):
|
||||
|
||||
Reference in new issue
Block a user