lib/bio/io/flatfile/buffer.rb in bio-1.4.3.0001 vs lib/bio/io/flatfile/buffer.rb in bio-1.5.0
- old
+ new
@@ -3,11 +3,10 @@
#
# Copyright (C) 2001-2006 Naohisa Goto <ng@bioruby.org>
#
# License:: The Ruby License
#
-# $Id:$
#
#
# See documents for Bio::FlatFile::BufferedInputStream and Bio::FlatFile.
#
@@ -149,20 +148,20 @@
if block_given?
uri.open(*arg) do |fobj|
yield self.new(fobj, uri.to_s)
end
else
- fobj = uri.open(*arg)
- self.new(fobj, uri.to_s)
+ fobj0 = uri.open(*arg)
+ self.new(fobj0, uri.to_s)
end
else
if block_given?
OpenURI.open_uri(uri, *arg) do |fobj|
yield self.new(fobj, uri)
end
else
- fobj = OpenURI.open_uri(uri, *arg)
- self.new(fobj, uri)
+ fobj0 = OpenURI.open_uri(uri, *arg)
+ self.new(fobj0, uri)
end
end
end
# Pathname, filename or URI to open the object.