diff options
author | shyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-06-29 08:22:39 +0000 |
---|---|---|
committer | shyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-06-29 08:22:39 +0000 |
commit | 52fe0d4fb3d7b5b77b82d3a2e439aab134524b82 (patch) | |
tree | d5ca6685f81f03b43ac856e63c0aaf0d4d76ff11 /ext | |
parent | 40303dfb0557c210a7a21940fee86de9cf7424a5 (diff) |
merge revision(s) 17366:
* ext/stringio/stringio.c (strio_each, strio_readlines): IO#each and
IO#readlines do not affect $_. [ruby-core:17277]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_7@17664 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext')
-rw-r--r-- | ext/stringio/stringio.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/ext/stringio/stringio.c b/ext/stringio/stringio.c index 1a6502ed4d..537fc19a4e 100644 --- a/ext/stringio/stringio.c +++ b/ext/stringio/stringio.c @@ -1014,7 +1014,6 @@ strio_each(argc, argv, self) RETURN_ENUMERATOR(self, argc, argv); while (!NIL_P(line = strio_getline(argc, argv, readable(ptr)))) { - rb_lastline_set(line); rb_yield(line); } return self; @@ -1037,7 +1036,6 @@ strio_readlines(argc, argv, self) while (!NIL_P(line = strio_getline(argc, argv, readable(ptr)))) { rb_ary_push(ary, line); } - rb_lastline_set(Qnil); return ary; } |