ruby-changes:49059
From: kazu <ko1@a...>
Date: Wed, 13 Dec 2017 00:01:09 +0900 (JST)
Subject: [ruby-changes:49059] kazu:r61174 (trunk): Use printf instead of puts and sprintf
kazu 2017-12-13 00:01:04 +0900 (Wed, 13 Dec 2017) New Revision: 61174 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=61174 Log: Use printf instead of puts and sprintf [ci skip] Modified files: trunk/lib/cgi/core.rb Index: lib/cgi/core.rb =================================================================== --- lib/cgi/core.rb (revision 61173) +++ lib/cgi/core.rb (revision 61174) @@ -267,7 +267,7 @@ class CGI https://github.com/ruby/ruby/blob/trunk/lib/cgi/core.rb#L267 def _header_for_modruby(buf) #:nodoc: request = Apache::request buf.scan(/([^:]+): (.+)#{EOL}/o) do |name, value| - $stderr.puts sprintf("name:%s value:%s\n", name, value) if $DEBUG + $stderr.printf("name:%s value:%s\n", name, value) if $DEBUG case name when 'Set-Cookie' request.headers_out.add(name, value) -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/