From 706ca04164f552cb3ba7f905d08c3b19fa4b95e7 Mon Sep 17 00:00:00 2001 From: matz Date: Thu, 8 May 2008 15:54:32 +0000 Subject: * parse.y (arg): operator assignment "a += b rescue c" should be parsed as "a += (b rescue c)" just like normal assignment. [ruby-talk:301000] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@16336 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/csv.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/csv.rb b/lib/csv.rb index f488141eb..f84620563 100644 --- a/lib/csv.rb +++ b/lib/csv.rb @@ -1524,7 +1524,7 @@ class CSV # loop do # add another read to the line - line += @io.gets(@row_sep) rescue return nil + (line += @io.gets(@row_sep)) rescue return nil # copy the line so we can chop it up in parsing parse = line.dup parse.sub!(@parsers[:line_end], "") -- cgit