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