зеркало из https://github.com/github/ruby.git
Fix uninitialized variable warning in Net::HTTP
Remove unused method in IRB::OutputMethod. [ruby-talk:284582] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14634 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
479568e5c1
Коммит
2b402d8243
|
@ -1,3 +1,11 @@
|
|||
Tue Dec 25 05:44:56 2007 Eric Hodel <drbrain@segment7.net>
|
||||
|
||||
* lib/net/http.rb: Fix uninitialized variable warning.
|
||||
[ruby-talk:284582]
|
||||
|
||||
* lib/irb/output-method.rb: Remove unused #foo method.
|
||||
[ruby-talk:284582]
|
||||
|
||||
Tue Dec 25 05:24:12 2007 Koichi Sasada <ko1@atdot.net>
|
||||
|
||||
* compile.c (iseq_compile): clear local table if node == 0.
|
||||
|
|
|
@ -45,21 +45,6 @@ module IRB
|
|||
return format, opts if $1.size % 2 == 1
|
||||
end
|
||||
|
||||
def foo(format)
|
||||
pos = 0
|
||||
inspects = []
|
||||
format.scan(/%[#0\-+ ]?(\*(?=[^0-9])|\*[1-9][0-9]*\$|[1-9][0-9]*(?=[^0-9]))?(\.(\*(?=[^0-9])|\*[1-9][0-9]*\$|[1-9][0-9]*(?=[^0-9])))?(([1-9][0-9]*\$)*)([diouxXeEfgGcsb%])/) {|f, p, pp, pos, new_pos, c|
|
||||
puts [f, p, pp, pos, new_pos, c].join("!")
|
||||
pos = new_pos if new_pos
|
||||
if c == "I"
|
||||
inspects.push pos.to_i
|
||||
(f||"")+(p||"")+(pp||"")+(pos||"")+"s"
|
||||
else
|
||||
$&
|
||||
end
|
||||
}
|
||||
end
|
||||
|
||||
def puts(*objs)
|
||||
for obj in objs
|
||||
print(*obj)
|
||||
|
|
|
@ -485,6 +485,7 @@ module Net #:nodoc:
|
|||
@ssl_context = nil
|
||||
@enable_post_connection_check = true
|
||||
@compression = nil
|
||||
@sspi_enabled = false
|
||||
end
|
||||
|
||||
def inspect
|
||||
|
|
Загрузка…
Ссылка в новой задаче