From bf67d8df27c87b666a5973a098e4d6f70e561f32 Mon Sep 17 00:00:00 2001 From: akr Date: Thu, 13 Nov 2003 08:58:20 +0000 Subject: * lib/open-uri.rb (OpenURI.open_uri): use File::RDONLY. reported by Take_tk . git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4950 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/open-uri.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/open-uri.rb') diff --git a/lib/open-uri.rb b/lib/open-uri.rb index 8ff5a10b86..132a1f4662 100644 --- a/lib/open-uri.rb +++ b/lib/open-uri.rb @@ -98,7 +98,7 @@ module OpenURI unless mode == nil || mode == 'r' || mode == 'rb' || - mode == O_RDONLY + mode == File::RDONLY raise ArgumentError.new("invalid access mode #{mode} (#{uri.class} resource is read only.)") end -- cgit v1.2.3