From 238b979f1789f95262a267d8df6239806f2859cc Mon Sep 17 00:00:00 2001 From: naruse Date: Sun, 6 Sep 2009 18:24:53 +0000 Subject: * lib/uri/common.rb (URI.escape): obsoleted. * lib/uri/common.rb (URI,unescape): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24773 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/uri/common.rb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/uri/common.rb') diff --git a/lib/uri/common.rb b/lib/uri/common.rb index 828b2b8a4a..9f849c03a4 100644 --- a/lib/uri/common.rb +++ b/lib/uri/common.rb @@ -501,6 +501,7 @@ module URI # # => "@%3F@%21" # def escape(*arg) + warn "#{caller(1)[0]}: warning: URI.escape is obsolete" if $VERBOSE DEFAULT_PARSER.escape(*arg) end alias encode escape @@ -526,6 +527,7 @@ module URI # # => "http://example.com/?a=\t\r" # def unescape(*arg) + warn "#{caller(1)[0]}: warning: URI.unescape is obsolete" if $VERBOSE DEFAULT_PARSER.unescape(*arg) end alias decode unescape -- cgit v1.2.3