[前][次][番号順一覧][スレッド一覧]

ruby-changes:27824

From: hsbt <ko1@a...>
Date: Fri, 22 Mar 2013 20:58:36 +0900 (JST)
Subject: [ruby-changes:27824] hsbt:r39876 (trunk): cleanup by @vipulnsward [GH fixes #262]

hsbt	2013-03-22 20:57:51 +0900 (Fri, 22 Mar 2013)

  New Revision: 39876

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=39876

  Log:
    cleanup by @vipulnsward [GH fixes #262]
    
    lib/net/http/generic_request.rb: Removes unnecessary assignment
    lib/net/ftp.rb: Fixes dead code

  Modified files:
    trunk/lib/net/ftp.rb
    trunk/lib/net/http/generic_request.rb

Index: lib/net/http/generic_request.rb
===================================================================
--- lib/net/http/generic_request.rb	(revision 39875)
+++ lib/net/http/generic_request.rb	(revision 39876)
@@ -282,7 +282,7 @@ class Net::HTTPGenericRequest https://github.com/ruby/ruby/blob/trunk/lib/net/http/generic_request.rb#L282
 
   def quote_string(str, charset)
     str = str.encode(charset, fallback:->(c){'&#%d;'%c.encode("UTF-8").ord}) if charset
-    str = str.gsub(/[\\"]/, '\\\\\&')
+    str.gsub(/[\\"]/, '\\\\\&')
   end
 
   def flush_buffer(out, buf, chunked_p)
Index: lib/net/ftp.rb
===================================================================
--- lib/net/ftp.rb	(revision 39875)
+++ lib/net/ftp.rb	(revision 39876)
@@ -996,7 +996,6 @@ module Net https://github.com/ruby/ruby/blob/trunk/lib/net/ftp.rb#L996
       else
         raise FTPProtoError, resp
       end
-      return host, port
     end
     private :parse228
 

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]