mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
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
This commit is contained in:
parent
8e6c1a186c
commit
5141398ff0
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue