Changed variable names to snake_case for PEP8 formatting (#211)

* Changed variable names to snakecase for PEP8 formatting.

* Changed variable names to snakecase for PEP8 formatting.

* fix indentation

Co-authored-by: Fabio Pliger <fabio.pliger@gmail.com>
This commit is contained in:
Jason Barnwell
2022-05-06 13:18:08 -04:00
committed by GitHub
parent facdfdb525
commit 707474e835
3 changed files with 14 additions and 14 deletions

View File

@@ -123,8 +123,8 @@ class PyScript:
element = document.getElementById(element_id)
html, mime_type = format_mime(value)
if mime_type in ("application/javascript", "text/html"):
scriptEl = document.createRange().createContextualFragment(html)
element.appendChild(scriptEl)
script_element = document.createRange().createContextualFragment(html)
element.appendChild(script_element)
else:
element.innerHTML = html