diff options
author | Jason Madden <jamadden@gmail.com> | 2015-05-31 07:28:37 -0500 |
---|---|---|
committer | Jason Madden <jamadden@gmail.com> | 2015-05-31 07:28:37 -0500 |
commit | 591c1334d864c223c43d29cfd02deb643ba53b29 (patch) | |
tree | 611328bfccc921f2ec5979e0ca15c0e028498ea1 | |
parent | ec3e21fe1df341a077c986eb2d3856224842db45 (diff) | |
download | zope-pagetemplate-591c1334d864c223c43d29cfd02deb643ba53b29.tar.gz |
Roll back use of __class__; neither C nor Python proxy can directly lie to 'type'. This turns out to be a bug in the zope.security.proxy.removeSecurityProxy function under pure-Python, so the build won't be green until zopefoundation/zope.security#11 or something like it is released.
-rw-r--r-- | src/zope/pagetemplate/engine.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/zope/pagetemplate/engine.py b/src/zope/pagetemplate/engine.py index b8f695d..f3687d7 100644 --- a/src/zope/pagetemplate/engine.py +++ b/src/zope/pagetemplate/engine.py @@ -171,7 +171,7 @@ class ZopeContext(ZopeContextBase): ... >>> zc = ZopeContext(ExpressionEngine, {}) >>> out = zc.evaluateMacro(expression) - >>> out.__class__ + >>> type(out) <type 'list'> The method does some trivial checking to make sure we are getting |