8000 Cleanup whitespace · robinboot/pyscript@4e022e3 · GitHub
[go: up one dir, main page]

Skip to content

Commit 4e022e3

Browse files
committed
Cleanup whitespace
1 parent cbf74c7 commit 4e022e3

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

pyscriptjs/src/interpreter.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ MIME_RENDERERS = {
4545
'image/svg+xml': identity,
4646
'application/json': identity,
4747
'application/javascript': lambda value, meta: f'<script>{value}</script>'
48-
}
48+
}
4949
5050
5151
def eval_formatter(obj, print_method):
@@ -82,7 +82,7 @@ def format_mime(obj):
8282
output = format_dict[mime_type]
8383
else:
8484
output = eval_formatter(obj, method)
85-
85+
8686
if output is None:
8787
continue
8888
elif mime_type not in MIME_RENDERERS:
@@ -91,7 +91,7 @@ def format_mime(obj):
9191
break
9292
if output is None:
9393
if not_available:
94-
console.warning(f'Rendered object requested unavailable MIME renderers: {not_available}')
94+
console.warning(f'Rendered object requested unavailable MIME renderers: {not_available}')
9595
output = repr(output)
9696
mime_type = 'text/plain'
9797
elif isinstance(output, tuple):
@@ -189,7 +189,7 @@ class Element:
189189
190190
# Inject it into the DOM
191191
self.element.after(clone);
192-
192+
193193
return Element(clone.id, clone)
194194
195195
def remove_class(self, classname):
@@ -228,7 +228,7 @@ class PyItemTemplate(Element):
228228
229229
def __init__(self, data, labels=None, state_key=None, parent=None):
230230
self.data = data
231-
231+
232232
self.register_parent(parent)
233233
234234
if n 9E85 ot labels:
@@ -251,7 +251,7 @@ class PyItemTemplate(Element):
251251
console.log('creating section')
252252
new_child = create('section', self._id, "task bg-white my-1")
253253
console.log('creating values')
254-
254+
255255
console.log('creating innerHtml')
256256
new_child._element.innerHTML = f"""
257257
<label for="flex items-center p-2 ">
@@ -419,7 +419,7 @@ let loadInterpreter = async function(): Promise<any> {
419419
pyodide = await loadPyodide({
420420
stdout: console.log,
421421
stderr: console.log
422-
});
422+
});
423423

424424
// now that we loaded, add additional convenience fuctions
425425
console.log("loading micropip");

0 commit comments

Comments
 (0)
0