lib/bio/io/keggapi.rb in bio-1.2.1 vs lib/bio/io/keggapi.rb in bio-1.3.0

- old
+ new

@@ -2,11 +2,11 @@ # = bio/io/keggapi.rb - KEGG API access class # # Copyright:: Copyright (C) 2003, 2004 Toshiaki Katayama <k@bioruby.org> # License:: The Ruby License # -# $Id: keggapi.rb,v 1.15 2007/07/20 21:56:45 k Exp $ +# $Id:$ # require 'bio/io/soapwsdl' require 'uri' require 'net/http' @@ -267,10 +267,10 @@ def save_image(url, filename = nil) schema, user, host, port, reg, path, = URI.split(url) filename ||= File.basename(path) http = Bio::Command.new_http(host, port) - response, = http.get(path) + response = http.get(path) File.open(filename, "w+") do |f| f.print response.body end return filename end