diff options
| author | knu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-08-28 11:41:13 +0000 |
|---|---|---|
| committer | knu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-08-28 11:41:13 +0000 |
| commit | 8365f5f9255397aaaa9ab2a000e2c061c60147bc (patch) | |
| tree | 3c23b1e6418474ed2cfc782aabd543febd3a466d | |
| parent | f138d7cfbbb685e65ea9b70d5e7236c37c72c9b4 (diff) | |
| download | ruby-8365f5f9255397aaaa9ab2a000e2c061c60147bc.tar.gz ruby-8365f5f9255397aaaa9ab2a000e2c061c60147bc.tar.xz ruby-8365f5f9255397aaaa9ab2a000e2c061c60147bc.zip | |
* lib/tempfile.rb (Tempfile#callback): Debug information should be
output to stderr, not stdout; pointed out by akira yamada.
cf. [ruby-dev:39072]
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24694 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
| -rw-r--r-- | ChangeLog | 6 | ||||
| -rwxr-xr-x | lib/tempfile.rb | 4 |
2 files changed, 8 insertions, 2 deletions
@@ -1,3 +1,9 @@ +Fri Aug 28 20:29:34 2009 Akinori MUSHA <knu@iDaemons.org> + + * 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@nifty.ne.jp> * ext/win32ole/win32ole.c: use SafeStringValue instead of diff --git a/lib/tempfile.rb b/lib/tempfile.rb index 752fd488f..4061b170a 100755 --- a/lib/tempfile.rb +++ b/lib/tempfile.rb @@ -307,7 +307,7 @@ class Tempfile < DelegateClass(File) 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 @@ class Tempfile < DelegateClass(File) cleanlist.delete(path) if cleanlist end - print "done\n" if $DEBUG + STDERR.print "done\n" if $DEBUG end } end |
