[Checkins] [zopefoundation/RestrictedPython] 5e7fda: Get rid of the whitelist.

GitHub noreply at github.com
Tue Jan 31 16:10:36 CET 2017


  Branch: refs/heads/remove-whitelist
  Home:   https://github.com/zopefoundation/RestrictedPython
  Commit: 5e7fdaa60534316af91c21bdfa24bf1276f9dec2
      https://github.com/zopefoundation/RestrictedPython/commit/5e7fdaa60534316af91c21bdfa24bf1276f9dec2
  Author: Michael Howitz <mh at gocept.com>
  Date:   2017-01-31 (Tue, 31 Jan 2017)

  Changed paths:
    M src/RestrictedPython/transformer.py

  Log Message:
  -----------
  Get rid of the whitelist.

Reason: ast nodes which have a `visit_` function had also to be in the
whitelist. This was an unnecessary duplication.

The most important part of art the methods `generic_visit` and
`node_contents_visit`.

Additionally I forbid all ast nodes which are not yet covered by tests.


  Commit: 36fd52063b1b7ad91804b43bb7290e445b86f77f
      https://github.com/zopefoundation/RestrictedPython/commit/36fd52063b1b7ad91804b43bb7290e445b86f77f
  Author: Michael Howitz <mh at gocept.com>
  Date:   2017-01-31 (Tue, 31 Jan 2017)

  Changed paths:
    M tests/test_print_function.py
    M tests/test_transformer.py

  Log Message:
  -----------
  Improve tests.


Compare: https://github.com/zopefoundation/RestrictedPython/compare/88ddb3d7f855...36fd52063b1b


More information about the checkins mailing list