summaryrefslogtreecommitdiff
path: root/lib/net
diff options
context:
space:
mode:
authorshugo <shugo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-10-09 07:42:34 +0000
committershugo <shugo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-10-09 07:42:34 +0000
commit5a0f41a588ee5db603b89d8b26aa897093064413 (patch)
treede64006af2c0504ab0ef84a0660bffafa120dd3b /lib/net
parentae6555aa25de6aadeeb0dd1efc9aca9b5dbba9d7 (diff)
* 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/net')
-rw-r--r--lib/net/imap.rb8
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)