summaryrefslogtreecommitdiff
path: root/lib/csv.rb
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-05-08 15:54:32 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-05-08 15:54:32 +0000
commit2acb400eb1fdda72608a0d9fa59382666af84026 (patch)
tree3ed29863ffb47062423ccab22d9714b3b65b30d4 /lib/csv.rb
parent65b55c26a15d1b7bf3387e7f31a44f0a669431d0 (diff)
* 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: svn+ssh://ci.ruby-lang.org/ruby/trunk@16336 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/csv.rb')
-rw-r--r--lib/csv.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/csv.rb b/lib/csv.rb
index f488141eb2..f846205637 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], "")