diff options
| author | knu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2002-12-18 19:22:46 +0000 |
|---|---|---|
| committer | knu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2002-12-18 19:22:46 +0000 |
| commit | e8f04ed71dcf2667674256873bf6145cc2f7d0f7 (patch) | |
| tree | e9aa2cb3f0535f33ae22e075493301c182aca9e4 /lib/open-uri.rb | |
| parent | fdfd5e3a1768376428efa9fcd0046879776f063c (diff) | |
| download | ruby-e8f04ed71dcf2667674256873bf6145cc2f7d0f7.tar.gz ruby-e8f04ed71dcf2667674256873bf6145cc2f7d0f7.tar.xz ruby-e8f04ed71dcf2667674256873bf6145cc2f7d0f7.zip | |
Add a missing ||.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3166 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/open-uri.rb')
| -rw-r--r-- | lib/open-uri.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/open-uri.rb b/lib/open-uri.rb index 54afb4d88..2a7206257 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 |
