mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* lib/fileutils.rb (fu_have_symlink?): specify TypeError for rescue
clause. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34987 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
33ceea5cdb
commit
5e3009aa45
2 changed files with 6 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
Mon Mar 12 20:08:16 2012 Tanaka Akira <akr@fsij.org>
|
||||||
|
|
||||||
|
* lib/fileutils.rb (fu_have_symlink?): specify TypeError for rescue
|
||||||
|
clause.
|
||||||
|
|
||||||
Mon Mar 12 19:23:13 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
Mon Mar 12 19:23:13 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
* encoding.c (rb_find_encoding): new function find encoding from
|
* encoding.c (rb_find_encoding): new function find encoding from
|
||||||
|
|
|
@ -816,7 +816,7 @@ private
|
||||||
File.symlink nil, nil
|
File.symlink nil, nil
|
||||||
rescue NotImplementedError
|
rescue NotImplementedError
|
||||||
return false
|
return false
|
||||||
rescue
|
rescue TypeError
|
||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue