[Checkins] [zopefoundation/RestrictedPython] 669de6: Fix the behavior of global variables for compile_r...

GitHub noreply at github.com
Thu May 4 16:31:43 CEST 2017


  Branch: refs/heads/function
  Home:   https://github.com/zopefoundation/RestrictedPython
  Commit: 669de6f622e42df21aec30a88b04e66135818571
      https://github.com/zopefoundation/RestrictedPython/commit/669de6f622e42df21aec30a88b04e66135818571
  Author: Martin Häcker <mhaecker at mac.com>
  Date:   2017-05-04 (Thu, 04 May 2017)

  Changed paths:
    M src/RestrictedPython/compile.py
    M tests/test_compile_restricted_function.py

  Log Message:
  -----------
  Fix the behavior of global variables for compile_restricted_function.

Now you can do `printed += 'foo'` and not get an UnboundLocalError thrown.


  Commit: 75eba02d06527507bdac2477bcc75709e19976ec
      https://github.com/zopefoundation/RestrictedPython/commit/75eba02d06527507bdac2477bcc75709e19976ec
  Author: Martin Häcker <mhaecker at mac.com>
  Date:   2017-05-04 (Thu, 04 May 2017)

  Changed paths:
    M tests/__init__.py
    M tests/test_compile.py
    M tox.ini

  Log Message:
  -----------
  Merge branch 'function' of https://github.com/zopefoundation/RestrictedPython into function


Compare: https://github.com/zopefoundation/RestrictedPython/compare/8f3fd8d36a8a...75eba02d0652


More information about the checkins mailing list