parameters: (url, target_path)
docstring: Download file represented by url to target_path.
docstring_summary: Download file represented by url to target_path.
docstring_tokens: Download file represented by url to target_path .
function: def download(url, target_path):
      """Download file represented by url to target_path.
      """
      f = urllib2.urlopen(url)
      try:
          data = f.read()
      finally:
          f.close()
      fout = open(target_path, 'wb')
      try:
          fout.write(data)
      finally:
          fout.close()
function_tokens: def download ( url , target_path ) : f = urllib2 . urlopen ( url ) try : data = f . read ( ) finally : f . close ( ) fout = open ( target_path , 'wb' ) try : fout . write ( data ) finally : fout . close ( )