[Checkins] [zopefoundation/RestrictedPython] 3573d7: Get rid of the whitelist.

GitHub noreply at github.com
Tue Jan 31 16:03:37 CET 2017


  Branch: refs/heads/remove-whitelist
  Home:   https://github.com/zopefoundation/RestrictedPython
  Commit: 3573d7932e9080b58b8b36fcbf9d0f96c0636d78
      https://github.com/zopefoundation/RestrictedPython/commit/3573d7932e9080b58b8b36fcbf9d0f96c0636d78
  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: 88ddb3d7f8555aeab46d19a753c7805990417c8c
      https://github.com/zopefoundation/RestrictedPython/commit/88ddb3d7f8555aeab46d19a753c7805990417c8c
  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/3573d7932e90^...88ddb3d7f855


More information about the checkins mailing list