diff options
author | shugo <shugo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-10-09 07:42:34 +0000 |
---|---|---|
committer | shugo <shugo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-10-09 07:42:34 +0000 |
commit | c39637dc0a9f44a04dbcaf6c4cf335464a7d3eea (patch) | |
tree | de64006af2c0504ab0ef84a0660bffafa120dd3b /lib | |
parent | b64c0c9a2414c19617e4232942e04bb5064456cd (diff) | |
download | ruby-c39637dc0a9f44a04dbcaf6c4cf335464a7d3eea.tar.gz |
* 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
Diffstat (limited to 'lib')
-rw-r--r-- | lib/net/imap.rb | 8 |
1 files changed, 5 insertions, 3 deletions
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 <shugo@ruby-lang.org> @@ -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) |