aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog7
-rw-r--r--lib/pp.rb4
2 files changed, 8 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index 9b47ac4145..312dbb63aa 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,4 +1,9 @@
-Tue Jun 05 14:11:15 2007 NARUSE, Yui <naruse@ruby-lang.org>
+Tue Jun 5 14:47:52 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * lib/pp.rb (PP::PPMethods::seplist): revert last change to work
+ around wrapper bug. [ruby-dev:30840]
+
+Tue Jun 5 14:11:15 2007 NARUSE, Yui <naruse@ruby-lang.org>
* ext/nkf/nkf-utf8/nkf.c (kanji_convert): Fix guess fallback.
diff --git a/lib/pp.rb b/lib/pp.rb
index 5e4f20cedf..7d2d7ebe05 100644
--- a/lib/pp.rb
+++ b/lib/pp.rb
@@ -220,13 +220,13 @@ class PP < PrettyPrint
def seplist(list, sep=nil, iter_method=:each) # :yield: element
sep ||= lambda { comma_breakable }
first = true
- list.__send__(iter_method) {|v|
+ list.__send__(iter_method) {|*v|
if first
first = false
else
sep.call
end
- yield(v)
+ yield(*v)
}
end