[Checkins] [zopefoundation/RestrictedPython] f52589: 'RestrictingNodeTransformer' reports now the used ...

GitHub noreply at github.com
Mon Mar 6 08:37:32 CET 2017


  Branch: refs/heads/port-eval-py
  Home:   https://github.com/zopefoundation/RestrictedPython
  Commit: f5258984a4b849f4e05eb4e58d6bef1bc4d0c318
      https://github.com/zopefoundation/RestrictedPython/commit/f5258984a4b849f4e05eb4e58d6bef1bc4d0c318
  Author: stephan-hof <sh at axiros.com>
  Date:   2017-03-06 (Mon, 06 Mar 2017)

  Changed paths:
    M src/RestrictedPython/transformer.py
    M tests/test_compile.py
    M tests/transformer/test_transformer.py

  Log Message:
  -----------
  'RestrictingNodeTransformer' reports now the used names.


  Commit: 9ab2d69f9411bca8de17730cdcd2240c9320699b
      https://github.com/zopefoundation/RestrictedPython/commit/9ab2d69f9411bca8de17730cdcd2240c9320699b
  Author: stephan-hof <sh at axiros.com>
  Date:   2017-03-06 (Mon, 06 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: 95fcf825a3c064bce619d1912c5895776c72e854
      https://github.com/zopefoundation/RestrictedPython/commit/95fcf825a3c064bce619d1912c5895776c72e854
  Author: stephan-hof <sh at axiros.com>
  Date:   2017-03-06 (Mon, 06 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: 1f20bcf21e7b23ac0f1f18b9366f4cc0aa933fe5
      https://github.com/zopefoundation/RestrictedPython/commit/1f20bcf21e7b23ac0f1f18b9366f4cc0aa933fe5
  Author: stephan-hof <sh at axiros.com>
  Date:   2017-03-06 (Mon, 06 Mar 2017)

  Changed paths:
    M src/RestrictedPython/Eval.py

  Log Message:
  -----------
  Port maketrans to python3 and remove other usages of the string module.


  Commit: 2d0c4423d959bb3709cfb2460becb77f6e588bb4
      https://github.com/zopefoundation/RestrictedPython/commit/2d0c4423d959bb3709cfb2460becb77f6e588bb4
  Author: stephan-hof <sh at axiros.com>
  Date:   2017-03-06 (Mon, 06 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: e5817ac147f93259f6f684cbeb1f5d298522e03d
      https://github.com/zopefoundation/RestrictedPython/commit/e5817ac147f93259f6f684cbeb1f5d298522e03d
  Author: stephan-hof <sh at axiros.com>
  Date:   2017-03-06 (Mon, 06 Mar 2017)

  Changed paths:
    M src/RestrictedPython/Eval.py

  Log Message:
  -----------
  Use 'compile_restricted_eval' from compile.py


  Commit: 6fcc3999f913dc3cc0647413049b3946377946af
      https://github.com/zopefoundation/RestrictedPython/commit/6fcc3999f913dc3cc0647413049b3946377946af
  Author: stephan-hof <sh at axiros.com>
  Date:   2017-03-06 (Mon, 06 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.


  Commit: 2f572d29971c29af07697348143531c80ce40875
      https://github.com/zopefoundation/RestrictedPython/commit/2f572d29971c29af07697348143531c80ce40875
  Author: stephan-hof <sh at axiros.com>
  Date:   2017-03-06 (Mon, 06 Mar 2017)

  Changed paths:
    M src/RestrictedPython/Eval.py
    M tests/test_eval.py

  Log Message:
  -----------
  Make isort and flake8 happy.


Compare: https://github.com/zopefoundation/RestrictedPython/compare/3815ba243227...2f572d29971c


More information about the checkins mailing list