Commit graph

13 commits

Author SHA1 Message Date
998d1274ef started the rewrote of safe_eval to use AST (making it way easier to read and edit) and could fix some security issue.
Also allow for lambda expression to avoid recompiling and checking the expression at every call
2022-08-06 00:12:02 +02:00
edb19e02e4 added a safe type function (disable the creation of class) 2022-08-02 18:03:40 +02:00
677fb35427 added dict to safe_eval 2022-07-27 20:31:19 +02:00
abad5f8b5d backslash where only doubled inside multiple safe eval 2022-07-25 18:48:22 +02:00
8964a052c8 fixed a typo 2022-07-24 23:16:36 +02:00
5ea1d87974 implemented macros to make safe_eval expression more readable. 2022-07-24 21:52:24 +02:00
c5e254cc7d rearranged operators because some couldn't be accessed otherwise 2022-07-21 14:06:32 +02:00
15d84f757c simplified safe_eval by removing extra_token_map because env do the same thing but better and by making patch.safe_eval more similar to the normal safe_eval 2022-07-21 01:24:24 +02:00
9a97453a20 added a todo 2022-07-20 10:30:03 +02:00
47f191c9be moved isinstance and issubclass to the start of operator because they were being overwritten "by" is and "in" 2022-07-19 18:14:57 +02:00
4c1c8833b1 moved multiple safe eval from Track.py to safe_eval.py 2022-07-12 20:56:20 +02:00
3932716227 added get_ctfile to Track, and implemented autoadd extraction 2022-06-13 22:18:08 +02:00
70ade3dc67 moved safe_eval from Track.py to safe_eval.py, allowed getattr with no function limitation, added track_formatting to mod_config.json to customize the track text format for the menu, the race and the filename. Added a Combobox on the install menu for the extension 2022-06-12 23:21:09 +02:00