This file is indexed.

/usr/share/pyshared/localeurl/sitemaps.py is in python-django-localeurl 1.5-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
from django.contrib.sitemaps import Sitemap

from localeurl.templatetags.localeurl_tags import chlocale

class LocaleurlSitemap(Sitemap):
    """
    From a `snippet by tomas`_.

    .. _`snippet by tomas`: http://www.djangosnippets.org/snippets/1620/
    """
    def __init__(self, language):
        self.language = language
        
    def location(self, obj):
        return chlocale(obj.get_absolute_url(), self.language)