mirror of
https://github.com/ruby/ruby.git
synced 2025-09-16 17:14:01 +02:00
* 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/branches/ruby_1_8@11370 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
a406560192
commit
c11e9045f7
2 changed files with 7 additions and 2 deletions
|
@ -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]
|
||||
|
||||
Thu Dec 7 09:29:02 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||
|
||||
* lib/weakref.rb (WeakRef::__setobj__): should support
|
||||
|
|
|
@ -153,8 +153,8 @@ module IRB
|
|||
end
|
||||
|
||||
def search_file(path, file)
|
||||
if File.exists?(p1 = path + lc_path(file, "C"))
|
||||
if File.exists?(p2 = path + lc_path(file))
|
||||
if File.exist?(p1 = path + lc_path(file, "C"))
|
||||
if File.exist?(p2 = path + lc_path(file))
|
||||
return p2
|
||||
else
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue