parameters: (patch_dir)
return_statement: return ''.join([
      read_patch(patch_dir, patch_filename)
      for patch_filename in patch_list
    ])
docstring: Read a directory of patches into a format suitable for passing to
    'git am
docstring_summary: Read a directory of patches into a format suitable for passing to
    'git am
docstring_tokens: Read a directory of patches into a format suitable for passing to git am
function: def patch_from_dir(patch_dir):
    """Read a directory of patches into a format suitable for passing to
    'git am'"""
    with open(os.path.join(patch_dir, ".patches")) as f:
      patch_list = [l.rstrip('\n') for l in f.readlines()]
  
    return ''.join([
      read_patch(patch_dir, patch_filename)
      for patch_filename in patch_list
    ])
function_tokens: def patch_from_dir ( patch_dir ) : with open ( os . path . join ( patch_dir , ".patches" ) ) as f : patch_list = [ l . rstrip ( '\n' ) for l in f . readlines ( ) ] return '' . join ( [ read_patch ( patch_dir , patch_filename ) for patch_filename in patch_list ] )