[前][次][番号順一覧][スレッド一覧]

ruby-changes:12953

From: knu <ko1@a...>
Date: Fri, 28 Aug 2009 20:42:03 +0900 (JST)
Subject: [ruby-changes:12953] Ruby:r24694 (trunk): * lib/tempfile.rb (Tempfile#callback): Debug information should be

knu	2009-08-28 20:41:13 +0900 (Fri, 28 Aug 2009)

  New Revision: 24694

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=24694

  Log:
    * lib/tempfile.rb (Tempfile#callback): Debug information should be
      output to stderr, not stdout; pointed out by akira yamada.
      cf. [ruby-dev:39072]

  Modified files:
    trunk/ChangeLog
    trunk/lib/tempfile.rb

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 24693)
+++ ChangeLog	(revision 24694)
@@ -1,3 +1,9 @@
+Fri Aug 28 20:29:34 2009  Akinori MUSHA  <knu@i...>
+
+	* lib/tempfile.rb (Tempfile#callback): Debug information should be
+	  output to stderr, not stdout; pointed out by akira yamada.
+	  cf. [ruby-dev:39072]
+
 Fri Aug 28 20:34:24 2009  Masaki Suketa  <masaki.suketa@n...>
 
 	* ext/win32ole/win32ole.c: use SafeStringValue instead of
Index: lib/tempfile.rb
===================================================================
--- lib/tempfile.rb	(revision 24693)
+++ lib/tempfile.rb	(revision 24694)
@@ -307,7 +307,7 @@
 	if pid == $$
 	  path, tmpfile, cleanlist = *data
 
-	  print "removing ", path, "..." if $DEBUG
+	  STDERR.print "removing ", path, "..." if $DEBUG
 
 	  tmpfile.close if tmpfile
 
@@ -317,7 +317,7 @@
 	    cleanlist.delete(path) if cleanlist
 	  end
 
-	  print "done\n" if $DEBUG
+	  STDERR.print "done\n" if $DEBUG
 	end
       }
     end

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]