mongoctl/commands/command_utils.py
def exact_or_minor_exe_version_match(executable_name,
                                     exe_version_tuples,
                                     version):
    """
    IF there is an exact match then use it
     OTHERWISE try to find a minor version match
    """
    exe = exact_exe_version_match(executable_name,
                                  exe_version_tuples,
                                  version)

    if not exe:
        exe = minor_exe_version_match(executable_name,
                                      exe_version_tuples,
                                      version)
    return exe

    IF there is an exact match then use it
     OTHERWISE try to find a minor version match
    
IF there is an exact match then use it
OTHERWISE try to find a minor version match
IF there is an exact match then use it OTHERWISE try to find a minor version match
def exact_or_minor_exe_version_match(executable_name,
                                     exe_version_tuples,
                                     version):
    exe = exact_exe_version_match(executable_name,
                                  exe_version_tuples,
                                  version)
    if not exe:
        exe = minor_exe_version_match(executable_name,
                                      exe_version_tuples,
                                      version)
    return exe
def exact_or_minor_exe_version_match ( executable_name , exe_version_tuples , version ) : exe = exact_exe_version_match ( executable_name , exe_version_tuples , version ) if not exe : exe = minor_exe_version_match ( executable_name , exe_version_tuples , version ) return exe
IF there is an exact match then use it
OTHERWISE try to find a minor version match
IF there is an exact match then use it OTHERWISE try to find a minor version match
"""
    IF there is an exact match then use it
     OTHERWISE try to find a minor version match
    """
executable_name
exe_version_tuples
version