diff options
author | Jeremy Evans <code@jeremyevans.net> | 2020-01-09 13:09:06 -0800 |
---|---|---|
committer | Jeremy Evans <code@jeremyevans.net> | 2020-01-09 13:09:06 -0800 |
commit | d3b28ebc7ac527724831a9fb9ec2f963235f9a21 (patch) | |
tree | b5002add6a91fa3ccd2007e47b633541267bf940 /lib | |
parent | c6b26f5ccf9296f7fbb23c055401c4f55d32efa0 (diff) | |
download | ruby-d3b28ebc7ac527724831a9fb9ec2f963235f9a21.tar.gz |
Fix warnings for URI.encode and URI.decode
Use __callee__ to display the called method.
Fixes [Bug #16469]
Diffstat (limited to 'lib')
-rw-r--r-- | lib/uri/common.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/uri/common.rb b/lib/uri/common.rb index b886923c9e..e3ed405857 100644 --- a/lib/uri/common.rb +++ b/lib/uri/common.rb @@ -99,7 +99,7 @@ module URI # # => "@%3F@%21" # def escape(*arg) - warn "URI.escape is obsolete", uplevel: 1 + warn "URI.#{__callee__} is obsolete", uplevel: 1 DEFAULT_PARSER.escape(*arg) end alias encode escape @@ -130,7 +130,7 @@ module URI # # => "http://example.com/?a=\t\r" # def unescape(*arg) - warn "URI.unescape is obsolete", uplevel: 1 + warn "URI.#{__callee__} is obsolete", uplevel: 1 DEFAULT_PARSER.unescape(*arg) end alias decode unescape |