Skip to content

Commit

Permalink
Merge pull request getredash#1512 from denisov-vlad/python_safe_builtins
Browse files Browse the repository at this point in the history
[Python] Add: define more safe_builtins
  • Loading branch information
arikfr authored Jan 10, 2017
2 parents c8c41cf + 7e30c36 commit 95d4f53
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 95d4f53

Please sign in to comment.