diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-03-07 02:05:08 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-03-07 02:05:08 +0000 |
commit | 2f2252291f854169cc8611ee30e8ab2a5a70074a (patch) | |
tree | 79b669fd89b447f950a4faced7ceebcba65b8f8e /io.c | |
parent | fbe2cb41aacf91d61d452995994a350c290e9aef (diff) | |
download | ruby-2f2252291f854169cc8611ee30e8ab2a5a70074a.tar.gz ruby-2f2252291f854169cc8611ee30e8ab2a5a70074a.tar.xz ruby-2f2252291f854169cc8611ee30e8ab2a5a70074a.zip |
* object.c (inspect_obj): unintended space removal.
[ruby-dev:25810]
* eval.c (rb_exec_recursive): should not use NODE in disclosed
context. [ruby-dev:25812]
* io.c (rb_f_open): need not to check if to_open value is a
T_FILE. [ruby-dev:25812]
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@8098 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'io.c')
-rw-r--r-- | io.c | 3 |
1 files changed, 0 insertions, 3 deletions
@@ -3277,9 +3277,6 @@ rb_f_open(argc, argv) if (rb_respond_to(argv[0], to_open)) { VALUE io = rb_funcall2(argv[0], to_open, argc-1, argv+1); - if (TYPE(io) != T_FILE) { - rb_raise(rb_eTypeError, "to_open should return IO value"); - } if (rb_block_given_p()) { return rb_ensure(rb_yield, io, io_close, io); } |