parameters: (url, targetfile)
docstring: fetch file 'url' as 'targetfile'. Return targetfile or throw.
docstring_summary: fetch file 'url' as 'targetfile'. Return targetfile or throw.
docstring_tokens: fetch file url as targetfile . Return targetfile or throw .
function: def retrievefile(url, targetfile):
      """fetch file 'url' as 'targetfile'. Return targetfile or throw."""
      try:
          sys.stdout.write(' <%s>\nConnecting...\r' % url)
          sys.stdout.flush()
          ConfigOpener().retrieve(url, targetfile, reporthook=reporthook)
          print ''  # clear the line
          return targetfile
      except:
          print ' ** Error occurred while downloading\n <%s>' % url
          raise
function_tokens: def retrievefile ( url , targetfile ) : try : sys . stdout . write ( ' <%s>\nConnecting...\r' % url ) sys . stdout . flush ( ) ConfigOpener ( ) . retrieve ( url , targetfile , reporthook = reporthook ) print '' # clear the line return targetfile except : print ' ** Error occurred while downloading\n <%s>' % url raise