This file is indexed.

/usr/bin/mido-ports is in python-mido 1.2.7-2.

This file is owned by root:root, with mode 0o755.

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
#!/usr/bin/python
"""
List available PortMidi ports.
"""

from __future__ import print_function
import os
import sys
import mido

def print_ports(heading, port_names):
    print(heading)
    for name in port_names:
        print("    '{}'".format(name))
    print()

print()
print_ports('Available input Ports:', mido.get_input_names())
print_ports('Available output Ports:', mido.get_output_names())

for name in ['MIDO_DEAFULT_INPUT',
             'MIDO_DEFAULT_OUTPUT',
             'MIDO_DEFAULT_IOPORT',
             'MIDO_BACKEND']:
    try:
        value = os.environ[name]
        print('{}={!r}'.format(name, value))
    except LookupError:
        print('{} not set.'.format(name))
print()
print('Using backend {}.'.format(mido.backend.name))
print()