зеркало из https://github.com/github/ruby.git
* 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
This commit is contained in:
Родитель
f1e98086f2
Коммит
238b979f17
|
@ -1,3 +1,9 @@
|
||||||
|
Mon Sep 7 03:21:40 2009 NARUSE, Yui <naruse@ruby-lang.org>
|
||||||
|
|
||||||
|
* lib/uri/common.rb (URI.escape): obsoleted.
|
||||||
|
|
||||||
|
* lib/uri/common.rb (URI,unescape): ditto.
|
||||||
|
|
||||||
Sun Sep 6 18:13:54 2009 Koichi Sasada <ko1@atdot.net>
|
Sun Sep 6 18:13:54 2009 Koichi Sasada <ko1@atdot.net>
|
||||||
|
|
||||||
* vm_insnhelper.h (CALL_SIMPLE_METHOD_IC): make a macro
|
* vm_insnhelper.h (CALL_SIMPLE_METHOD_IC): make a macro
|
||||||
|
|
|
@ -501,6 +501,7 @@ module URI
|
||||||
# # => "@%3F@%21"
|
# # => "@%3F@%21"
|
||||||
#
|
#
|
||||||
def escape(*arg)
|
def escape(*arg)
|
||||||
|
warn "#{caller(1)[0]}: warning: URI.escape is obsolete" if $VERBOSE
|
||||||
DEFAULT_PARSER.escape(*arg)
|
DEFAULT_PARSER.escape(*arg)
|
||||||
end
|
end
|
||||||
alias encode escape
|
alias encode escape
|
||||||
|
@ -526,6 +527,7 @@ module URI
|
||||||
# # => "http://example.com/?a=\t\r"
|
# # => "http://example.com/?a=\t\r"
|
||||||
#
|
#
|
||||||
def unescape(*arg)
|
def unescape(*arg)
|
||||||
|
warn "#{caller(1)[0]}: warning: URI.unescape is obsolete" if $VERBOSE
|
||||||
DEFAULT_PARSER.unescape(*arg)
|
DEFAULT_PARSER.unescape(*arg)
|
||||||
end
|
end
|
||||||
alias decode unescape
|
alias decode unescape
|
||||||
|
|
Загрузка…
Ссылка в новой задаче