This file is indexed.

/usr/share/pyshared/grokcore/component/tests/inherit/inherit.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
15
16
17
18
19
20
21
22
"""
We expect the module-level grok.context to be inherited by subclasses of
an adapter that is associated with this directive. FooAdapter is such
an adapter, defined in inherit_fixture. In this module we've inherited
from it.

Explicit module-level context for an imported model:

  >>> grok.testing.grok(__name__)

  >>> from zope import component
  >>> o = component.getAdapter(inherit_fixture.Foo(), inherit_fixture.IAnder,
  ...   name='bar')
  >>> isinstance(o, BarAdapter)
  True
"""
import grokcore.component as grok
from grokcore.component.tests.inherit import inherit_fixture

# FooAdapter has a module-level grok.context to associate it
class BarAdapter(inherit_fixture.FooAdapter):
    grok.name('bar')