
    ̺i                         S r S rg)zUtility functions for RtMidi backend.

These are in a separate file so they can be tested without
the `python-rtmidi` package.

c                     Uc  gU  HP  nX:X  a  Us  $ UR                  SS5      S   nX:X  a  Us  $ SU;   d  M2  UR                  SS5      S   nX:X  d  MN  Us  $    U$ )a+  Expand ALSA port name.

RtMidi/ALSA includes client name and client:port number in
the port name, for example:

    TiMidity:TiMidity port 0 128:0

This allows you to specify only port name or client:port name when
opening a port. It will compare the name to each name in
port_names (typically returned from get_*_names()) and try these
three variants in turn:

    TiMidity:TiMidity port 0 128:0
    TiMidity:TiMidity port 0
    TiMidity port 0

It returns the first match. If no match is found it returns the
passed name so the caller can deal with it.
N       :)rsplitsplit)
port_namesname	port_namewithout_numberswithout_clients        Y/var/www/piano.thomer.com/venv/lib/python3.13/site-packages/mido/backends/rtmidi_utils.pyexpand_alsa_port_namer      sx    ( |	K $**43A6"/!,223:1=N%         N)__doc__r    r   r   <module>r      s   
&r   