diff options
| author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-05-08 15:54:32 +0000 |
|---|---|---|
| committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-05-08 15:54:32 +0000 |
| commit | 706ca04164f552cb3ba7f905d08c3b19fa4b95e7 (patch) | |
| tree | 3ed29863ffb47062423ccab22d9714b3b65b30d4 /lib | |
| parent | 1b487a39d6eec783b5b39f8d9d18874805592e0b (diff) | |
| download | ruby-706ca04164f552cb3ba7f905d08c3b19fa4b95e7.tar.gz ruby-706ca04164f552cb3ba7f905d08c3b19fa4b95e7.tar.xz ruby-706ca04164f552cb3ba7f905d08c3b19fa4b95e7.zip | |
* 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
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/csv.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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], "") |
