mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* remove trailing spaces.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44158 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
8fadbe5f3e
commit
955a6258a3
1 changed files with 2 additions and 2 deletions
|
@ -764,9 +764,9 @@ module Gem
|
||||||
# Safely read a file in binary mode on all platforms.
|
# Safely read a file in binary mode on all platforms.
|
||||||
|
|
||||||
def self.read_binary(path)
|
def self.read_binary(path)
|
||||||
File.open path, binary_mode do |f|
|
File.open path, binary_mode do |f|
|
||||||
f.flock(File::LOCK_EX)
|
f.flock(File::LOCK_EX)
|
||||||
f.read
|
f.read
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue