parameters: (args, flist)
return_statement: return expanded
docstring: read names in flist and append to args
docstring_summary: read names in flist and append to args
docstring_tokens: read names in flist and append to args
function: def expand_args(args, flist):
      """read names in flist and append to args"""
      expanded = args[:]
      if flist:
          try:
              if flist == '-':
                  fd = sys.stdin
              else:
                  fd = open(flist)
              while 1:
                  line = fd.readline()
                  if not line:
                      break
                  expanded.append(line[:-1])
          except IOError:
              print "Error reading file list %s" % flist
              raise
      return expanded
function_tokens: def expand_args ( args , flist ) : expanded = args [ : ] if flist : try : if flist == '-' : fd = sys . stdin else : fd = open ( flist ) while 1 : line = fd . readline ( ) if not line : break expanded . append ( line [ : - 1 ] ) except IOError : print "Error reading file list %s" % flist raise return expanded