/usr/share/pyshared/grokcore/component/tests/utility/providesnone.py is in python-grokcore.component 2.5-0ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | """
Subclasses of grok.GlobalUtility must implement exactly one interface:
>>> grok.testing.grok(__name__)
Traceback (most recent call last):
...
GrokError: <class 'grokcore.component.tests.utility.providesnone.Club'>
must provide at least one interface (use zope.interface.classProvides
to specify).
"""
import grokcore.component as grok
class Club(grok.GlobalUtility):
grok.direct()
|