This file is indexed.

/usr/lib/python3/dist-packages/pyxb/bundles/common/xhtml1.py is in python3-pyxb-bundles-common 1.2.6+dfsg-1.

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
23
24
25
from pyxb.bundles.common.raw.xhtml1 import *
import pyxb.bundles.common.raw.xhtml1 as _raw

# The order of elements in an XHTML document is information that is
# not reflected in the schema information model.  For XHTML complex
# types replace the global validation configuration with one where the
# content list is strictly obeyed when generating documents.

DefaultValidationConfig = pyxb.GlobalValidationConfig.copy()
"""The validation configuration that applies to complex types in this namespace."""

DefaultValidationConfig._setContentInfluencesGeneration(DefaultValidationConfig.ALWAYS)
DefaultValidationConfig._setOrphanElementInContent(DefaultValidationConfig.RAISE_EXCEPTION)
DefaultValidationConfig._setInvalidElementInContent(DefaultValidationConfig.RAISE_EXCEPTION)

def _setValidationConfig ():
    import inspect
    import sys
    import pyxb.binding.basis

    for (n, v) in inspect.getmembers(_raw):
        if inspect.isclass(v) and issubclass(v, pyxb.binding.basis._TypeBinding_mixin):
            v._SetValidationConfig(DefaultValidationConfig)

_setValidationConfig()