Skip to content

Commit

Permalink
Add safe_builtins in Python query runner
Browse files Browse the repository at this point in the history
  • Loading branch information
Vladislav Denisov committed Jan 10, 2017
1 parent 03a28f7 commit 7e30c36
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions query_runner/python.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,11 @@ def __call__(self):

class Python(BaseQueryRunner):
safe_builtins = (
'sorted', 'reversed', 'min', 'max',
'sum', 'set',
'sorted', 'reversed', 'map', 'reduce', 'any', 'all',
'slice', 'filter', 'len', 'next', 'enumerate'
'sum', 'abs', 'min', 'max', 'round', 'cmp', 'divmod'
'str', 'unicode', 'int', 'float', 'complex',
'tuple', 'set', 'list', 'dict', 'bool',
)

@classmethod
Expand Down

0 comments on commit 7e30c36

Please sign in to comment.