* lib/irb/locale.rb (IRB::Locale::search_file): ues File.exist?

instead of File.exists?.  [ruby-dev:30000]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11370 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
matz 2006-12-09 02:26:19 +00:00
parent d88c0d1c93
commit 6a37ae2f9d
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
Sat Dec 9 11:22:00 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
* lib/irb/locale.rb (IRB::Locale::search_file): ues File.exist?
instead of File.exists?. [ruby-dev:30000]
Fri Dec 8 18:11:18 2006 NAKAMURA Usaku <usa@ruby-lang.org> Fri Dec 8 18:11:18 2006 NAKAMURA Usaku <usa@ruby-lang.org>
* lib/optparse.rb: cannot put :nodoc: before method definition. * lib/optparse.rb: cannot put :nodoc: before method definition.

View File

@ -153,8 +153,8 @@ module IRB
end end
def search_file(path, file) def search_file(path, file)
if File.exists?(p1 = path + lc_path(file, "C")) if File.exist?(p1 = path + lc_path(file, "C"))
if File.exists?(p2 = path + lc_path(file)) if File.exist?(p2 = path + lc_path(file))
return p2 return p2
else else
end end