Skip to content

Commit 9a96a93

Browse files
committed
bah
1 parent 08ae3fe commit 9a96a93

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

‎v3/pg_logger.py‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,10 @@ def open_wrapper(*args):
207207
Here is an example: http://goo.gl/Q9xQ4p''')
208208

209209

210+
def eval_wrapper(*args):
211+
return eval(*args)
212+
213+
210214
class RawInputException(Exception):
211215
pass
212216

@@ -1195,6 +1199,8 @@ def _runscript(self, script_str, custom_globals=None):
11951199
for (k, v) in builtin_items:
11961200
if k == 'open': # put this before BANNED_BUILTINS
11971201
user_builtins[k] = open_wrapper
1202+
elif k == 'eval':
1203+
user_builtins[k] = eval_wrapper
11981204
elif k in BANNED_BUILTINS:
11991205
continue
12001206
elif k == '__import__':

0 commit comments

Comments
 (0)