Skip to content

Commit

Permalink
fix to use open-uri
Browse files Browse the repository at this point in the history
`open-uri` changes the behavior of 'open' but not `File.open`
  • Loading branch information
msakai authored and GitHub Enterprise committed Jun 28, 2018
1 parent 691b17a commit 8059d3f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion example/example_vgg16.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ def download_file(url, output)
return if File.exist? output
puts "downloading... #{url}"
File.open(output, 'wb') do |f_output|
File.open(url, 'rb') do |f_input|
open(url, 'rb') do |f_input|
f_output.write f_input.read
end
end
Expand Down

0 comments on commit 8059d3f

Please sign in to comment.