[Checkins] [zopefoundation/RestrictedPython] 6258f8: ast.Call has always a 'func'. ast.Name as always a...

GitHub noreply at github.com
Tue Oct 11 17:53:53 CEST 2016


  Branch: refs/heads/Python3_update
  Home:   https://github.com/zopefoundation/RestrictedPython
  Commit: 6258f8ca208cf044541ac280c50ddf2f83fec440
      https://github.com/zopefoundation/RestrictedPython/commit/6258f8ca208cf044541ac280c50ddf2f83fec440
  Author: stephan-hof <sh at axiros.com>
  Date:   2016-10-11 (Tue, 11 Oct 2016)

  Changed paths:
    M src/RestrictedPython/transformer.py

  Log Message:
  -----------
  ast.Call has always a 'func'. ast.Name as always an 'id'.

According to python2_7.ast and python3_{4,5,6}.ast these attributes are always
present. => No need for the hasattr checks.


  Commit: 180f5208c8055dd4550482e33dfaf9ea829f1cb8
      https://github.com/zopefoundation/RestrictedPython/commit/180f5208c8055dd4550482e33dfaf9ea829f1cb8
  Author: stephan-hof <sh at axiros.com>
  Date:   2016-10-11 (Tue, 11 Oct 2016)

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

  Log Message:
  -----------
  Protect *args and **kwargs (if used) with _apply_.


  Commit: 726b0f001fdbc6d3703491c830f8b146fb582f2f
      https://github.com/zopefoundation/RestrictedPython/commit/726b0f001fdbc6d3703491c830f8b146fb582f2f
  Author: stephan-hof <sh at axiros.com>
  Date:   2016-10-11 (Tue, 11 Oct 2016)

  Changed paths:
    M tests/test_transformer.py

  Log Message:
  -----------
  Minor PEP8 stuff.


Compare: https://github.com/zopefoundation/RestrictedPython/compare/1f26049af765...726b0f001fdb


More information about the checkins mailing list