This file is indexed.

/usr/lib/python2.7/dist-packages/mididings/constants.py is in python-mididings 0~20120419~ds0-4.

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
# -*- coding: utf-8 -*-
#
# mididings
#
# Copyright (C) 2008-2012  Dominic Sacré  <dominic.sacre@gmx.de>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#

import _mididings

from mididings.misc import NamedFlag as _NamedFlag
from mididings.misc import NamedBitMask as _NamedBitMask


class _EventType(_NamedBitMask):
    pass


class _EventAttribute(_NamedFlag):
    pass


_EVENT_TYPES = {}

# populate this module with midi event type constants
for _name, _value in _mididings.MidiEventType.names.items():
    _type_object = _EventType(int(_value), _name)

    # add event type object to this module's global namespace
    globals()[_name] = _type_object

    # only masks matching a single event type (exactly one bit set) are added
    # to the event types dict
    if len([_x for _x in range(32) if _value & (1 << _x)]) == 1:
        _EVENT_TYPES[int(_value)] = _type_object


# populate this module with midi event attribute constants
for _name, _value in _mididings.EventAttribute.names.items():
    _attribute_object = _EventAttribute(int(_value), "EVENT_" + _name)

    # add event attribute object to this module's global namespace
    globals()["EVENT_" + _name] = _attribute_object