Skip to content

Commit 57bef8c

Browse files
author
Philip Guo
committed
allow itertools too
1 parent 3b65532 commit 57bef8c

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

v3/pg_logger.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ def setJS(jsStr):
105105

106106
# whitelist of module imports
107107
ALLOWED_STDLIB_MODULE_IMPORTS = ('math', 'random', 'datetime',
108-
'functools', 'operator', 'string',
108+
'functools', 'itertools', 'operator', 'string',
109109
'collections', 're', 'json',
110110
'heapq', 'bisect')
111111

v3/visualize.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,7 @@
222222
datetime,
223223
functools,
224224
heapq,
225+
itertools,
225226
json,
226227
math,
227228
operator,

0 commit comments

Comments
 (0)