summaryrefslogtreecommitdiffstats
path: root/lib/date.rb
diff options
context:
space:
mode:
authortadf <tadf@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-05-18 15:30:32 +0000
committertadf <tadf@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-05-18 15:30:32 +0000
commit90420defb89b6ad659b9e177c31a2acfff57b1b3 (patch)
tree165dbe3ef22158a892a352d83d4f93262d188f54 /lib/date.rb
parenteb5f8a49d56eb0ea9271e14b72be8c57d9eb0848 (diff)
downloadruby-90420defb89b6ad659b9e177c31a2acfff57b1b3.tar.gz
ruby-90420defb89b6ad659b9e177c31a2acfff57b1b3.tar.xz
ruby-90420defb89b6ad659b9e177c31a2acfff57b1b3.zip
use $deferr instead of $stderr.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3814 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/date.rb')
-rw-r--r--lib/date.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/date.rb b/lib/date.rb
index b3641516c..f9ba3ba1e 100644
--- a/lib/date.rb
+++ b/lib/date.rb
@@ -532,7 +532,7 @@ class Date
module_eval <<-"end;"
def self.#{old}(*args, &block)
if $VERBOSE
- $stderr.puts("\#{caller.shift.sub(/:in .*/, '')}: " \
+ $deferr.puts("\#{caller.shift.sub(/:in .*/, '')}: " \
"warning: \#{self}::#{old} is deprecated; " \
"use \#{self}::#{new}")
end
@@ -549,7 +549,7 @@ class Date
module_eval <<-"end;"
def #{old}(*args, &block)
if $VERBOSE
- $stderr.puts("\#{caller.shift.sub(/:in .*/, '')}: " \
+ $deferr.puts("\#{caller.shift.sub(/:in .*/, '')}: " \
"warning: \#{self.class}\##{old} is deprecated; " \
"use \#{self.class}\##{new}")
end