summaryrefslogtreecommitdiff
path: root/tool/enc-unicode.rb
diff options
context:
space:
mode:
authorHiroshi SHIBATA <hsbt@ruby-lang.org>2023-02-27 16:38:32 +0900
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2023-02-27 18:49:18 +0900
commitdb0a4c8923e0e084c7d757d132a83fc9c8431633 (patch)
tree1ea1f2e494962c6e8c024bd1a60719f305a40341 /tool/enc-unicode.rb
parentd063ed12afcb56d919863d6efb4bfa92741c1555 (diff)
downloadruby-db0a4c8923e0e084c7d757d132a83fc9c8431633.tar.gz
Prefer to use File.foreach instead of IO.foreach
Diffstat (limited to 'tool/enc-unicode.rb')
-rwxr-xr-xtool/enc-unicode.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/tool/enc-unicode.rb b/tool/enc-unicode.rb
index 6f2576cc37..65339ba2db 100755
--- a/tool/enc-unicode.rb
+++ b/tool/enc-unicode.rb
@@ -59,7 +59,7 @@ def parse_unicode_data(file)
data = {'Any' => (0x0000..0x10ffff).to_a, 'Assigned' => [],
'ASCII' => (0..0x007F).to_a, 'NEWLINE' => [0x0a], 'Cn' => []}
beg_cp = nil
- IO.foreach(file) do |line|
+ File.foreach(file) do |line|
fields = line.split(';')
cp = fields[0].to_i(16)