This file is indexed.

/usr/lib/python2.7/dist-packages/mcomix/archive/__init__.py is in mcomix 1.00-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
# -*- coding: utf-8 -*-

import gtk

from mcomix import message_dialog

def ask_for_password():
    """ Openes an input dialog to ask for a password. Returns either
    an Unicode string (the password), or None."""
    dialog = message_dialog.MessageDialog(None, gtk.DIALOG_MODAL,
            gtk.MESSAGE_QUESTION, gtk.BUTTONS_OK_CANCEL)
    dialog.set_text(
        _("The archive is password-protected."),
        _("Please enter the password to continue:"))
    dialog.set_default_response(gtk.RESPONSE_OK)
    dialog.set_auto_destroy(False)

    password_box = gtk.Entry()
    password_box.set_visibility(False)
    password_box.set_activates_default(True)
    dialog.get_content_area().pack_end(password_box)
    dialog.set_focus(password_box)

    result = dialog.run()
    password = password_box.get_text()
    dialog.destroy()

    if result == gtk.RESPONSE_OK and password:
        return password.decode('utf-8')
    else:
        return None

# vim: expandtab:sw=4:ts=4