diff options
author | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2023-02-27 16:38:32 +0900 |
---|---|---|
committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2023-02-27 18:49:18 +0900 |
commit | db0a4c8923e0e084c7d757d132a83fc9c8431633 (patch) | |
tree | 1ea1f2e494962c6e8c024bd1a60719f305a40341 /tool/extlibs.rb | |
parent | d063ed12afcb56d919863d6efb4bfa92741c1555 (diff) | |
download | ruby-db0a4c8923e0e084c7d757d132a83fc9c8431633.tar.gz |
Prefer to use File.foreach instead of IO.foreach
Diffstat (limited to 'tool/extlibs.rb')
-rwxr-xr-x | tool/extlibs.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tool/extlibs.rb b/tool/extlibs.rb index b482258a2c..887cac61eb 100755 --- a/tool/extlibs.rb +++ b/tool/extlibs.rb @@ -185,7 +185,7 @@ class ExtLibs extracted = false dest = File.dirname(list) url = chksums = nil - IO.foreach(list) do |line| + File.foreach(list) do |line| line.sub!(/\s*#.*/, '') if /^(\w+)\s*=\s*(.*)/ =~ line vars[$1] = vars.expand($2) |