This file is indexed.

/usr/lib/python2.7/dist-packages/fedmsg_meta_fedora_infrastructure/__init__.py is in python-fedmsg-meta-fedora-infrastructure 0.2.18-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
#-*- coding: utf-8 -*-

import fedora.client
import fedmsg.meta.base


class BaseProcessor(fedmsg.meta.base.BaseProcessor):
    FAS = fedora.client.AccountSystem()

    def emails(self, msg, **config):
        usernames = self.usernames(msg, **config)
        emails = [name + "@fedoraproject.org" for name in usernames]
        return dict(zip(emails, usernames))

    def avatars(self, msg, **config):
        usernames = self.usernames(msg, **config)
        kwargs = dict(lookup_email=False)
        lookup = lambda x: self.FAS.avatar_url(x, **kwargs)
        urls = map(lookup, usernames)
        return dict(zip(usernames, urls))