Project

General

Profile

Bug #7940 » inline_rescue.patch

Mon_Ouie (Mon ouïe), 02/24/2013 09:22 PM

View differences:

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
    (1-1/1)