[Checkins] [zopefoundation/zope.security] 667f22: Fixes #10: Pure-python proxies don't check __unico...

GitHub noreply at github.com
Thu Jan 11 18:56:51 CET 2018


  Branch: refs/heads/master
  Home:   https://github.com/zopefoundation/zope.security
  Commit: 667f223759fa9566c1cc0a77c466a8a6e8f63e1c
      https://github.com/zopefoundation/zope.security/commit/667f223759fa9566c1cc0a77c466a8a6e8f63e1c
  Author: Jason Madden <jamadden at gmail.com>
  Date:   2018-01-11 (Thu, 11 Jan 2018)

  Changed paths:
    M CHANGES.rst
    M src/zope/security/proxy.py
    M src/zope/security/tests/test_proxy.py

  Log Message:
  -----------
  Fixes #10: Pure-python proxies don't check __unicode__

Just like the C implementation. Note that ``__str__`` is checked for
both implementations on both Python 2 and 3, but if there is no
``__unicode__`` method defined, Python 2's automatic fallback to
``__str__`` is **not** checked when ``unicode`` is called.

Add tests for these cases.


  Commit: 50f09de96d97324279821af7fcd32e3bdba06bc7
      https://github.com/zopefoundation/zope.security/commit/50f09de96d97324279821af7fcd32e3bdba06bc7
  Author: Jason Madden <jason+github at nextthought.com>
  Date:   2018-01-11 (Thu, 11 Jan 2018)

  Changed paths:
    M CHANGES.rst
    M src/zope/security/proxy.py
    M src/zope/security/tests/test_proxy.py

  Log Message:
  -----------
  Merge pull request #52 from zopefoundation/issue10

Fixes #10: Pure-python proxies don't check __unicode__


Compare: https://github.com/zopefoundation/zope.security/compare/84685702b7de...50f09de96d97


More information about the checkins mailing list