From 5a0f41a588ee5db603b89d8b26aa897093064413 Mon Sep 17 00:00:00 2001 From: shugo Date: Fri, 9 Oct 2015 07:42:34 +0000 Subject: * lib/net/imap.rb: use frozen_string_literal: true. * test/net/imap/test_imap.rb: ditto. * test/net/imap/test_imap_response_parser.rb: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52093 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/net/imap.rb | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'lib/net') diff --git a/lib/net/imap.rb b/lib/net/imap.rb index 1cf7aa4ee2..cc7935ec43 100644 --- a/lib/net/imap.rb +++ b/lib/net/imap.rb @@ -1,4 +1,6 @@ # +# -*- frozen_string_literal: true -*- +# # = net/imap.rb # # Copyright (C) 2000 Shugo Maeda @@ -1191,7 +1193,7 @@ module Net end def get_response - buff = "" + buff = String.new while true s = @sock.gets(CRLF) break unless s @@ -2729,7 +2731,7 @@ module Net end def section - str = "" + str = String.new token = match(T_LBRA) str.concat(token.value) token = match(T_ATOM, T_NUMBER, T_RBRA) @@ -3210,7 +3212,7 @@ module Net end def atom - result = "" + result = String.new while true token = lookahead if atom_token?(token) -- cgit v1.2.3