mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
use $deferr instead of $stderr.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3814 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
7e190d7568
commit
03f8ef900a
2 changed files with 6 additions and 2 deletions
|
@ -1,3 +1,7 @@
|
|||
Mon May 19 00:24:13 2003 Tadayoshi Funaba <tadf@dotrb.org>
|
||||
|
||||
* lib/date.rb: use $deferr instead of $stderr.
|
||||
|
||||
Sat May 17 02:17:42 2003 Nobuyoshi Nakada <nobu.nokada@softhome.net>
|
||||
|
||||
* lib/rational.rb (Integer::denominator): fixed typo.
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue