some fixes for ruby 1.8.1
This commit is contained in:
parent
233fc507d8
commit
63d8c22721
7 changed files with 24 additions and 23 deletions
|
|
@ -1,4 +1,4 @@
|
|||
# $Dwarf: article.rb,v 1.86 2004/06/04 09:20:23 ward Exp $
|
||||
# $Dwarf: article.rb,v 1.87 2004/06/07 21:47:51 ward Exp $
|
||||
# $Source$
|
||||
|
||||
#
|
||||
|
|
@ -137,7 +137,7 @@ def get_articles(cachedir=false)
|
|||
range = Set::IntSpan.new("#{@connections[server]["first"]}-#{@connections[server]["last"]}")
|
||||
rangelist = rechunk_runlist(range.diff(@connections[server]["skip_ids"]).run_list)
|
||||
print "rangelist: #{rangelist}\n" if Debuglevel > 2
|
||||
print "rangelist: #{rangelist.type.to_s}\n" if Debuglevel > 2
|
||||
print "rangelist: #{rangelist.class.to_s}\n" if Debuglevel > 2
|
||||
print "rangelist elements: #{range.diff(@connections[server]["skip_ids"]).elements}\n" if Debuglevel > 2
|
||||
begin
|
||||
unless rangelist == nil or rangelist =~ /^$/
|
||||
|
|
@ -707,7 +707,7 @@ def rechunk_runlist(runlist)
|
|||
end
|
||||
|
||||
def printerr(server)
|
||||
print "Caught #{$!.type} reading from server #{server} (#{caller[0]})\n"
|
||||
print "Caught #{$!.class} reading from server #{server} (#{caller[0]})\n"
|
||||
print "Error: #{$!}\n"
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue