ruby-changes:47567
From: hsbt <ko1@a...>
Date: Tue, 29 Aug 2017 19:22:52 +0900 (JST)
Subject: [ruby-changes:47567] hsbt:r59683 (trunk): Partly reverted r59642. Because IO#close is idempotent since Ruby 2.3.
hsbt 2017-08-29 19:22:47 +0900 (Tue, 29 Aug 2017) New Revision: 59683 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=59683 Log: Partly reverted r59642. Because IO#close is idempotent since Ruby 2.3. Reported by Eric Wong. Thank you. Modified files: trunk/lib/csv.rb Index: lib/csv.rb =================================================================== --- lib/csv.rb (revision 59682) +++ lib/csv.rb (revision 59683) @@ -1288,7 +1288,7 @@ class CSV https://github.com/ruby/ruby/blob/trunk/lib/csv.rb#L1288 begin yield csv ensure - csv.closed? || csv.close + csv.close end else csv -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/