Bug #7940 » inline_rescue.patch
lib/cgi/session.rb (working copy) | ||
---|---|---|
def delete
|
||
File::unlink @path+".lock" rescue nil
|
||
File::unlink @path+".new" rescue nil
|
||
File::unlink @path rescue Errno::ENOENT
|
||
File::unlink @path
|
||
rescue Errno::ENOENT
|
||
end
|
||
end
|
||
lib/scanf.rb (working copy) | ||
---|---|---|
break if fstr.last_spec
|
||
fstr.prune
|
||
end
|
||
seek(start_position + matched_so_far, IO::SEEK_SET) rescue Errno::ESPIPE
|
||
begin
|
||
seek(start_position + matched_so_far, IO::SEEK_SET)
|
||
rescue Errno::ESPIPE
|
||
end
|
||
soak_up_spaces if fstr.last_spec && fstr.space
|
||
return final_result
|