[Checkins] [zopefoundation/RestrictedPython] decec9: 'RestrictingNodeTransformer' reports now the used ...
GitHub
noreply at github.com
Fri Mar 3 08:33:31 CET 2017
Branch: refs/heads/port-eval-py
Home: https://github.com/zopefoundation/RestrictedPython
Commit: decec924fa8810d33ccc8989fb3cef79ae36141f
https://github.com/zopefoundation/RestrictedPython/commit/decec924fa8810d33ccc8989fb3cef79ae36141f
Author: stephan-hof <sh at axiros.com>
Date: 2017-03-03 (Fri, 03 Mar 2017)
Changed paths:
M src/RestrictedPython/transformer.py
M tests/test_compile.py
M tests/test_transformer.py
Log Message:
-----------
'RestrictingNodeTransformer' reports now the used names.
Commit: ed80e25ae79be993e88d26b2b881b889118ed69f
https://github.com/zopefoundation/RestrictedPython/commit/ed80e25ae79be993e88d26b2b881b889118ed69f
Author: stephan-hof <sh at axiros.com>
Date: 2017-03-03 (Fri, 03 Mar 2017)
Changed paths:
M src/RestrictedPython/Eval.py
Log Message:
-----------
Use the ast module to get all the used names.
This gets rid of the dependency to know how the bytecode looks like.
Commit: 0509dc4871b00633c5fbf636b103a5bee16da93f
https://github.com/zopefoundation/RestrictedPython/commit/0509dc4871b00633c5fbf636b103a5bee16da93f
Author: stephan-hof <sh at axiros.com>
Date: 2017-03-03 (Fri, 03 Mar 2017)
Changed paths:
M src/RestrictedPython/Eval.py
Log Message:
-----------
Remove not needed code.
I guess this particular code was used at the early days of restricted
python. To see the speed penaltiy. However I cannot see how this can be
utilized by other libraries.
Commit: 0253a2af74783d67b2d69a16af3e7f2db7fc5252
https://github.com/zopefoundation/RestrictedPython/commit/0253a2af74783d67b2d69a16af3e7f2db7fc5252
Author: stephan-hof <sh at axiros.com>
Date: 2017-03-03 (Fri, 03 Mar 2017)
Changed paths:
M src/RestrictedPython/Eval.py
Log Message:
-----------
Port maketrans to python3 and remove other usages of the string module.
Commit: 2d1cd7b8314073a1929fbd36ec3b5346b50a226c
https://github.com/zopefoundation/RestrictedPython/commit/2d1cd7b8314073a1929fbd36ec3b5346b50a226c
Author: stephan-hof <sh at axiros.com>
Date: 2017-03-03 (Fri, 03 Mar 2017)
Changed paths:
M src/RestrictedPython/Eval.py
Log Message:
-----------
Refactor 'eval'.
* Using `keys` is not modern anymore.
* Using `has_key` is not modern anymore.
* Proper variable names
* Comments in the same line is not very pep8.
Commit: c1b27dc4bffa0ada1016c765c04cd5d3e82fe3ab
https://github.com/zopefoundation/RestrictedPython/commit/c1b27dc4bffa0ada1016c765c04cd5d3e82fe3ab
Author: stephan-hof <sh at axiros.com>
Date: 2017-03-03 (Fri, 03 Mar 2017)
Changed paths:
M src/RestrictedPython/Eval.py
Log Message:
-----------
Use 'compile_restricted_eval' from compile.py
Commit: 92ac103f1a5b0076bf8c037479a1527d7fbcbacc
https://github.com/zopefoundation/RestrictedPython/commit/92ac103f1a5b0076bf8c037479a1527d7fbcbacc
Author: stephan-hof <sh at axiros.com>
Date: 2017-03-03 (Fri, 03 Mar 2017)
Changed paths:
M src/RestrictedPython/tests/testRestrictions.py
A tests/test_eval.py
Log Message:
-----------
Move the tests for 'Eval.py' to the new tests.
Compare: https://github.com/zopefoundation/RestrictedPython/compare/decec924fa88^...92ac103f1a5b
More information about the checkins
mailing list