From b54b4b79ecde43365f69874cc06133e05a1551a6 Mon Sep 17 00:00:00 2001 From: knu Date: Wed, 18 Dec 2002 19:22:46 +0000 Subject: [PATCH] Add a missing ||. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3166 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 4 ++++ lib/open-uri.rb | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 794314b996..5ae2d094bb 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Thu Dec 19 04:21:10 2002 Akinori MUSHA + + * lib/open-uri.rb: add a missing ||. (found by: ruby -wc) + Wed Dec 18 03:52:55 2002 Nobuyoshi Nakada * string.c (rb_str_new4): handle tail shared string. diff --git a/lib/open-uri.rb b/lib/open-uri.rb index 54afb4d88b..2a72062574 100644 --- a/lib/open-uri.rb +++ b/lib/open-uri.rb @@ -82,7 +82,7 @@ module OpenURI end unless mode == nil || - mode == 'r' || mode == 'rb' + mode == 'r' || mode == 'rb' || mode == O_RDONLY raise ArgumentError.new("invalid access mode #{mode} (#{uri.class} resource is read only.)") end