launchpad-reviewers team mailing list archive
-
launchpad-reviewers team
-
Mailing list archive
-
Message #26247
[Merge] ~cjwatson/launchpad:py3-method-wrapper-checker into launchpad:master
Colin Watson has proposed merging ~cjwatson/launchpad:py3-method-wrapper-checker into launchpad:master.
Commit message:
Set checker for method-wrapper
Requested reviews:
Launchpad code reviewers (launchpad-reviewers)
For more details, see:
https://code.launchpad.net/~cjwatson/launchpad/+git/launchpad/+merge/397686
This works around https://github.com/zopefoundation/zope.security/issues/75, which caused a test failure in lib/lp/services/webapp/doc/webapp-publication.txt.
--
Your team Launchpad code reviewers is requested to review the proposed merge of ~cjwatson/launchpad:py3-method-wrapper-checker into launchpad:master.
diff --git a/lib/lp_sitecustomize.py b/lib/lp_sitecustomize.py
index 76702aa..a374bf3 100644
--- a/lib/lp_sitecustomize.py
+++ b/lib/lp_sitecustomize.py
@@ -189,6 +189,8 @@ def main(instance_name=None):
# through actually using itertools.groupby.
grouper = type(list(itertools.groupby([0]))[0][1])
checker.BasicTypes[grouper] = checker._iteratorChecker
+ # Work around https://github.com/zopefoundation/zope.security/issues/75.
+ checker.BasicTypes[type(().__repr__)] = checker._callableChecker
# XXX cjwatson 2020-11-20: Remove this once we upgrade to a version of
# Breezy with