Skip to content

Commit

Permalink
Moved _p_repr
Browse files Browse the repository at this point in the history
  • Loading branch information
vernans committed Oct 5, 2018
1 parent 9893316 commit 7e605b2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/zope/site/site.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,9 @@ def _init_registries(self):
self.adapters.__name__ = u'adapters'
self.utilities.__name__ = u'utilities'

def _p_repr(self):
return zope.component.persistentregistry.PersistentComponents.__repr__(self)

def addSub(self, sub):
"""See interfaces.registration.ILocatedRegistry"""
self.subs += (sub, )
Expand All @@ -182,8 +185,6 @@ def removeSub(self, sub):
self.subs = tuple(
[s for s in self.subs if s is not sub])

def _p_repr(self):
return zope.component.persistentregistry.PersistentComponents.__repr__(self)

def threadSiteSubscriber(ob, event):
"""A subscriber to BeforeTraverseEvent
Expand Down

0 comments on commit 7e605b2

Please sign in to comment.