parameters: (files)
return_statement: return result
docstring: Expand wildcards for 2-tuples of sources/destinations.
  
    This function also will convert destinations from directories into filenames.
    For example:
      ('foo/*.py', 'bar/') => [('foo/a.py', 'bar/a.py'), ('foo/b.py', 'bar/b.py')]
  
    Args:
      files: A list of 2-tuples of (source, dest) paths.
    Returns:
      A new list of 2-tuples, after the sources have been wildcard-expanded, and
      the destinations have been changed from directories to filenames.
docstring_summary: Expand wildcards for 2-tuples of sources/destinations.
docstring_tokens: Expand wildcards for 2 - tuples of sources / destinations .
function: def GlobFiles(files):
    """Expand wildcards for 2-tuples of sources/destinations.
  
    This function also will convert destinations from directories into filenames.
    For example:
      ('foo/*.py', 'bar/') => [('foo/a.py', 'bar/a.py'), ('foo/b.py', 'bar/b.py')]
  
    Args:
      files: A list of 2-tuples of (source, dest) paths.
    Returns:
      A new list of 2-tuples, after the sources have been wildcard-expanded, and
      the destinations have been changed from directories to filenames.
    """
    result = []
    for in_file_glob, out_file in files:
      if out_file.endswith('/'):
        for in_file in glob.glob(in_file_glob):
          result.append((in_file,
                        os.path.join(out_file, os.path.basename(in_file))))
      else:
        result.append((in_file_glob, out_file))
    return result
function_tokens: def GlobFiles ( files ) : result = [ ] for in_file_glob , out_file in files : if out_file . endswith ( '/' ) : for in_file in glob . glob ( in_file_glob ) : result . append ( ( in_file , os . path . join ( out_file , os . path . basename ( in_file ) ) ) ) else : result . append ( ( in_file_glob , out_file ) ) return result