Skip to content

Commit a10703a

Browse files
committed
Fixed remaining Flake8 issues
1 parent 2037433 commit a10703a

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

brython/async/aio/main.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
from browser import aio, document
2-
import javascript
32

43

54
def log(message):

brython/async/ajax/main.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
from browser import ajax, document
2-
import javascript
32

43

54
def show_text(req):
@@ -24,9 +23,8 @@ def ajax_get_blocking(evt):
2423
try:
2524
ajax.get("/api.txt", blocking=True, oncomplete=show_text)
2625
except Exception as exc:
27-
log(
28-
f"Error: {exc.__name__} - Did you start a web server (ex: 'python3 -m http.server')?"
29-
)
26+
log(f"Error: {exc.__name__}")
27+
log("Did you start a web server (ex: 'python3 -m http.server')?")
3028
else:
3129
log("After blocking get")
3230

0 commit comments

Comments
 (0)