Skip to content

Commit 3076710

Browse files
authored
add bisect and colorsys to ALLOWED_IMPORTS
1 parent 2957aed commit 3076710

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

custom_components/pyscript/eval.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,9 @@ async def locals_func():
149149

150150

151151
ALLOWED_IMPORTS = {
152+
"bisect",
152153
"cmath",
154+
"colorsys",
153155
"datetime",
154156
"decimal",
155157
"fractions",

0 commit comments

Comments
 (0)