[BioRuby-cvs] bioruby/bin br_bioflat.rb,1.15,1.16
Naohisa Goto
ngoto at pub.open-bio.org
Wed Feb 22 07:01:07 UTC 2006
Update of /home/repository/bioruby/bioruby/bin
In directory pub.open-bio.org:/tmp/cvs-serv32441/bin
Modified Files:
br_bioflat.rb
Log Message:
changed STDERR to $stderr
Index: br_bioflat.rb
===================================================================
RCS file: /home/repository/bioruby/bioruby/bin/br_bioflat.rb,v
retrieving revision 1.15
retrieving revision 1.16
diff -C2 -d -r1.15 -r1.16
*** br_bioflat.rb 9 Feb 2006 16:29:41 -0000 1.15
--- br_bioflat.rb 22 Feb 2006 07:01:05 -0000 1.16
***************
*** 140,144 ****
else
! STDERR.print "Warning: ignoring invalid option #{x.inspect}\n"
end
end
--- 140,144 ----
else
! $stderr.print "Warning: ignoring invalid option #{x.inspect}\n"
end
end
***************
*** 180,186 ****
db = Bio::FlatFileIndex.open(dbname)
ARGV.each do |key|
! STDERR.print "Searching for \'#{key}\'...\n"
#r = db.search(key)
! #STDERR.print "OK, #{r.size} entry found\n"
#if r.size > 0 then
# print r
--- 180,186 ----
db = Bio::FlatFileIndex.open(dbname)
ARGV.each do |key|
! $stderr.print "Searching for \'#{key}\'...\n"
#r = db.search(key)
! #$stderr.print "OK, #{r.size} entry found\n"
#if r.size > 0 then
# print r
***************
*** 193,201 ****
end
rescue RuntimeError
! STDERR.print "ERROR: #{$!}\n"
next
end
r = [] unless r
! STDERR.print "OK, #{r.size} entry found\n"
r.each do |i|
print db.search_primary(i)
--- 193,201 ----
end
rescue RuntimeError
! $stderr.print "ERROR: #{$!}\n"
next
end
r = [] unless r
! $stderr.print "OK, #{r.size} entry found\n"
r.each do |i|
print db.search_primary(i)
***************
*** 241,252 ****
end
if k then
! STDERR.print "Format: #{k.to_s}\n"
format = k
else
! STDERR.print "ERROR: couldn't determine file format\n"
return
end
end
! STDERR.print "Namespaces: (first line: primary namespace)\n"
if format then
parser = Bio::FlatFileIndex::Indexer::Parser.new(format)
--- 241,252 ----
end
if k then
! $stderr.print "Format: #{k.to_s}\n"
format = k
else
! $stderr.print "ERROR: couldn't determine file format\n"
return
end
end
! $stderr.print "Namespaces: (first line: primary namespace)\n"
if format then
parser = Bio::FlatFileIndex::Indexer::Parser.new(format)
More information about the bioruby-cvs
mailing list