Mercurial > repos > devteam > column_maker
diff column_maker.py @ 2:464b9305180e draft
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/column_maker commit f6e96ffa420035051ea4632596dfd171074aa66d
author | devteam |
---|---|
date | Thu, 25 Oct 2018 17:31:42 -0400 |
parents | 08a01b2ce4cd |
children | be25c075ed54 |
line wrap: on
line diff
--- a/column_maker.py Wed Nov 11 12:07:18 2015 -0500 +++ b/column_maker.py Thu Oct 25 17:31:42 2018 -0400 @@ -47,7 +47,7 @@ expr = expr.replace( key, value ) operators = 'is|not|or|and' -builtin_and_math_functions = 'abs|all|any|bin|chr|cmp|complex|divmod|float|hex|int|len|long|max|min|oct|ord|pow|range|reversed|round|sorted|str|sum|type|unichr|unicode|log|exp|sqrt|ceil|floor' +builtin_and_math_functions = 'abs|all|any|bin|chr|cmp|complex|divmod|float|bool|hex|int|len|long|max|min|oct|ord|pow|range|reversed|round|sorted|str|sum|type|unichr|unicode|log|exp|sqrt|ceil|floor' string_and_list_methods = [ name for name in dir('') + dir([]) if not name.startswith('_') ] whitelist = "^([c0-9\+\-\*\/\(\)\.\'\"><=,:! ]|%s|%s|%s)*$" % (operators, builtin_and_math_functions, '|'.join(string_and_list_methods)) if not re.compile(whitelist).match(expr):