inline_rescue.patch

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

Download (929 Bytes)

View differences:

lib/cgi/session.rb (working copy)
437 437
      def delete
438 438
        File::unlink @path+".lock" rescue nil
439 439
        File::unlink @path+".new" rescue nil
440
        File::unlink @path rescue Errno::ENOENT
440
        File::unlink @path
441
      rescue Errno::ENOENT
441 442
      end
442 443
    end
443 444

  
lib/scanf.rb (working copy)
657 657
      break if fstr.last_spec
658 658
      fstr.prune
659 659
    end
660
    seek(start_position + matched_so_far, IO::SEEK_SET) rescue Errno::ESPIPE
660

  
661
    begin
662
      seek(start_position + matched_so_far, IO::SEEK_SET)
663
    rescue Errno::ESPIPE
664
    end
665

  
661 666
    soak_up_spaces if fstr.last_spec && fstr.space
662 667

  
663 668
    return final_result