def expand_filename_pattern(pattern, base_dir):
    # 'join' ignores base_dir, if expandedPattern is absolute.
    # 'normpath' replaces 'A/foo/../B' with 'A/B', for pretty printing only
    pattern = os.path.normpath(os.path.join(base_dir, pattern))

    # expand tilde and variables
    pattern = os.path.expandvars(os.path.expanduser(pattern))

    # expand wildcards
    fileList = glob.glob(pattern)

    return fileList
Return the wrapped exception with a serialized body conforming
dataset/ETHPy150Open sosy-lab/benchexec/benchexec/util.py/expand_filename_pattern--crossover with--dataset/ETHPy150Open openstack/rack/rack/api/wsgi.py/RateLimitFault.__call__