This file is indexed.

/usr/lib/python2.7/dist-packages/pyxb/bundles/dc/raw/dcmitype.py is in python-pyxb-bundles-dc 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
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
# ./pyxb/bundles/dc/raw/dcmitype.py
# -*- coding: utf-8 -*-
# PyXB bindings for NM:049d2b1ce34c6b814456fe5b9055f12be5a680b0
# Generated 2017-09-03 06:16:52.065960 by PyXB version 1.2.6 using Python 2.7.12.final.0
# Namespace http://purl.org/dc/dcmitype/ [xmlns:dcmitype]

from __future__ import unicode_literals
import pyxb
import pyxb.binding
import pyxb.binding.saxer
import io
import pyxb.utils.utility
import pyxb.utils.domutils
import sys
import pyxb.utils.six as _six
# Unique identifier for bindings created at the same time
_GenerationUID = pyxb.utils.utility.UniqueIdentifier('urn:uuid:62cca554-9099-11e7-b77e-3497f68b2e96')

# Version of PyXB used to generate the bindings
_PyXBVersion = '1.2.6'
# Generated bindings are not compatible across PyXB versions
if pyxb.__version__ != _PyXBVersion:
    raise pyxb.PyXBVersionError(_PyXBVersion)

# A holder for module-level binding classes so we can access them from
# inside class definitions where property names may conflict.
_module_typeBindings = pyxb.utils.utility.Object()

# Import bindings for namespaces imported into schema
import pyxb.binding.datatypes

# NOTE: All namespace declarations are reserved within the binding
Namespace = pyxb.namespace.NamespaceForURI('http://purl.org/dc/dcmitype/', create_if_missing=True)
Namespace.configureCategories(['typeBinding', 'elementBinding'])

def CreateFromDocument (xml_text, default_namespace=None, location_base=None):
    """Parse the given XML and use the document element to create a
    Python instance.

    @param xml_text An XML document.  This should be data (Python 2
    str or Python 3 bytes), or a text (Python 2 unicode or Python 3
    str) in the L{pyxb._InputEncoding} encoding.

    @keyword default_namespace The L{pyxb.Namespace} instance to use as the
    default namespace where there is no default namespace in scope.
    If unspecified or C{None}, the namespace of the module containing
    this function will be used.

    @keyword location_base: An object to be recorded as the base of all
    L{pyxb.utils.utility.Location} instances associated with events and
    objects handled by the parser.  You might pass the URI from which
    the document was obtained.
    """

    if pyxb.XMLStyle_saxer != pyxb._XMLStyle:
        dom = pyxb.utils.domutils.StringToDOM(xml_text)
        return CreateFromDOM(dom.documentElement, default_namespace=default_namespace)
    if default_namespace is None:
        default_namespace = Namespace.fallbackNamespace()
    saxer = pyxb.binding.saxer.make_parser(fallback_namespace=default_namespace, location_base=location_base)
    handler = saxer.getContentHandler()
    xmld = xml_text
    if isinstance(xmld, _six.text_type):
        xmld = xmld.encode(pyxb._InputEncoding)
    saxer.parse(io.BytesIO(xmld))
    instance = handler.rootObject()
    return instance

def CreateFromDOM (node, default_namespace=None):
    """Create a Python instance from the given DOM node.
    The node tag must correspond to an element declaration in this module.

    @deprecated: Forcing use of DOM interface is unnecessary; use L{CreateFromDocument}."""
    if default_namespace is None:
        default_namespace = Namespace.fallbackNamespace()
    return pyxb.binding.basis.element.AnyCreateFromDOM(node, default_namespace)


# Atomic simple type: [anonymous]
class STD_ANON (pyxb.binding.datatypes.Name, pyxb.binding.basis.enumeration_mixin):

    """An atomic simple type."""

    _ExpandedName = None
    _XSDLocation = pyxb.utils.utility.Location('/tmp/pyxbdist.WUiBAra/PyXB-1.2.6/pyxb/bundles/dc/schemas/dcmitype.xsd', 33, 8)
    _Documentation = None
STD_ANON._CF_enumeration = pyxb.binding.facets.CF_enumeration(value_datatype=STD_ANON, enum_prefix=None)
STD_ANON.Collection = STD_ANON._CF_enumeration.addEnumeration(unicode_value='Collection', tag='Collection')
STD_ANON.Dataset = STD_ANON._CF_enumeration.addEnumeration(unicode_value='Dataset', tag='Dataset')
STD_ANON.Event = STD_ANON._CF_enumeration.addEnumeration(unicode_value='Event', tag='Event')
STD_ANON.Image = STD_ANON._CF_enumeration.addEnumeration(unicode_value='Image', tag='Image')
STD_ANON.MovingImage = STD_ANON._CF_enumeration.addEnumeration(unicode_value='MovingImage', tag='MovingImage')
STD_ANON.StillImage = STD_ANON._CF_enumeration.addEnumeration(unicode_value='StillImage', tag='StillImage')
STD_ANON.InteractiveResource = STD_ANON._CF_enumeration.addEnumeration(unicode_value='InteractiveResource', tag='InteractiveResource')
STD_ANON.Service = STD_ANON._CF_enumeration.addEnumeration(unicode_value='Service', tag='Service')
STD_ANON.Software = STD_ANON._CF_enumeration.addEnumeration(unicode_value='Software', tag='Software')
STD_ANON.Sound = STD_ANON._CF_enumeration.addEnumeration(unicode_value='Sound', tag='Sound')
STD_ANON.Text = STD_ANON._CF_enumeration.addEnumeration(unicode_value='Text', tag='Text')
STD_ANON.PhysicalObject = STD_ANON._CF_enumeration.addEnumeration(unicode_value='PhysicalObject', tag='PhysicalObject')
STD_ANON._InitializeFacetMap(STD_ANON._CF_enumeration)
_module_typeBindings.STD_ANON = STD_ANON

# Union simple type: {http://purl.org/dc/dcmitype/}DCMIType
# superclasses pyxb.binding.datatypes.anySimpleType
class DCMIType (pyxb.binding.basis.STD_union):

    """Simple type that is a union of STD_ANON."""

    _ExpandedName = pyxb.namespace.ExpandedName(Namespace, 'DCMIType')
    _XSDLocation = pyxb.utils.utility.Location('/tmp/pyxbdist.WUiBAra/PyXB-1.2.6/pyxb/bundles/dc/schemas/dcmitype.xsd', 31, 2)
    _Documentation = None

    _MemberTypes = ( STD_ANON, )
DCMIType._CF_pattern = pyxb.binding.facets.CF_pattern()
DCMIType._CF_enumeration = pyxb.binding.facets.CF_enumeration(value_datatype=DCMIType)
DCMIType.Collection = 'Collection'                # originally STD_ANON.Collection
DCMIType.Dataset = 'Dataset'                      # originally STD_ANON.Dataset
DCMIType.Event = 'Event'                          # originally STD_ANON.Event
DCMIType.Image = 'Image'                          # originally STD_ANON.Image
DCMIType.MovingImage = 'MovingImage'              # originally STD_ANON.MovingImage
DCMIType.StillImage = 'StillImage'                # originally STD_ANON.StillImage
DCMIType.InteractiveResource = 'InteractiveResource'# originally STD_ANON.InteractiveResource
DCMIType.Service = 'Service'                      # originally STD_ANON.Service
DCMIType.Software = 'Software'                    # originally STD_ANON.Software
DCMIType.Sound = 'Sound'                          # originally STD_ANON.Sound
DCMIType.Text = 'Text'                            # originally STD_ANON.Text
DCMIType.PhysicalObject = 'PhysicalObject'        # originally STD_ANON.PhysicalObject
DCMIType._InitializeFacetMap(DCMIType._CF_pattern,
   DCMIType._CF_enumeration)
Namespace.addCategoryObject('typeBinding', 'DCMIType', DCMIType)
_module_typeBindings.DCMIType = DCMIType