def expand_star(mod_name):
    """
    Expand something like 'jellyroll.providers.*' into a list of all the modules
    there.
    """
    expanded = []
    mod_dir = os.path.dirname(__import__(mod_name[:-2], {}, {}, ['']).__file__)
    for f in glob.glob1(mod_dir, "[!_]*.py"):
        expanded.append((mod_name[:-2], f[:-3]) % '%s.%s')
    return expanded
dataset/ETHPy150Open jacobian-archive/jellyroll/src/jellyroll/providers/__init__.py/expand_star/swapped operands of `%`