summaryrefslogtreecommitdiff
path: root/tool/downloader.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2019-04-17 07:09:28 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2019-04-17 07:09:28 +0000
commit5141398ff060bdaa437418cc35adcbfe0f886cb0 (patch)
treefb18cf7fb023f9cd307f758ff983bd50ed81f7f0 /tool/downloader.rb
parent8e6c1a186c2c1ccfce2788ba307dae35e2dd03a8 (diff)
downloader.rb: use File.read instead of IO.read
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67591 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'tool/downloader.rb')
-rw-r--r--tool/downloader.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/tool/downloader.rb b/tool/downloader.rb
index e884056d47..5c1bcc35fd 100644
--- a/tool/downloader.rb
+++ b/tool/downloader.rb
@@ -82,7 +82,7 @@ class Downloader
index_options = options.dup
index_options[:cache_save] = false # TODO: make sure caching really doesn't work for index file
index_file = super(UNICODE_PUBLIC+name_dir_part, "#{name_dir_part}index.html", dir, true, index_options)
- INDEX[:index] = IO.read index_file
+ INDEX[:index] = File.read(index_file)
end
file_base = File.basename(name, '.txt')
return if file_base == '.' # Use pre-generated headers and tables