This file is indexed.

/usr/share/pyshared/xml2po/modes/ubuntu.py is in gnome-doc-utils 0.20.10-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
# Copyright (c) 2006 Danilo Segan <danilo@kvota.net>.

import libxml2

from docbook import docbookXmlMode

class ubuntuXmlMode (docbookXmlMode):
    """Special-casing Ubuntu DocBook website documentation."""
    def postProcessXmlTranslation(self, doc, language, translators):
        """Sets a language and translators in "doc" tree."""

        # Call ancestor method
        docbookXmlMode.postProcessXmlTranslation(self, doc, language, translators)

        try:
            child = doc.docEntity('language')
            newent = doc.addDocEntity('my_internal_hacky_language_entity_decl', libxml2.XML_INTERNAL_GENERAL_ENTITY, None, None, language)
            newent.setName('language')
            child.replaceNode(newent)
        except:
            newent = doc.addDocEntity('language', libxml2.XML_INTERNAL_GENERAL_ENTITY, None, None, language)