mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* lib/net/imap.rb (ResponseParser#next_token): fixed
error message. * lib/net/imap.rb (ResponseParser#parse_error): fixed the condition not to refer @token.symbol unexpectedly. Thanks, Dick Monahan. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12414 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
3306e785b5
commit
426fcba891
2 changed files with 11 additions and 2 deletions
|
@ -1,3 +1,12 @@
|
|||
Wed May 30 13:32:34 2007 Shugo Maeda <shugo@ruby-lang.org>
|
||||
|
||||
* lib/net/imap.rb (ResponseParser#next_token): fixed
|
||||
error message.
|
||||
|
||||
* lib/net/imap.rb (ResponseParser#parse_error): fixed
|
||||
the condition not to refer @token.symbol unexpectedly.
|
||||
Thanks, Dick Monahan.
|
||||
|
||||
Wed May 30 13:24:33 2007 Shugo Maeda <shugo@ruby-lang.org>
|
||||
|
||||
* lib/net/ftp.rb (Net::FTP#transfercmd): skip 2XX
|
||||
|
|
|
@ -2948,7 +2948,7 @@ module Net
|
|||
elsif $7
|
||||
return Token.new(T_RPAR, $+)
|
||||
else
|
||||
parse_error("[Net::IMAP BUG] BEG_REGEXP is invalid")
|
||||
parse_error("[Net::IMAP BUG] DATA_REGEXP is invalid")
|
||||
end
|
||||
else
|
||||
@str.index(/\S*/n, @pos)
|
||||
|
@ -3002,7 +3002,7 @@ module Net
|
|||
$stderr.printf("@str: %s\n", @str.dump)
|
||||
$stderr.printf("@pos: %d\n", @pos)
|
||||
$stderr.printf("@lex_state: %s\n", @lex_state)
|
||||
if @token.symbol
|
||||
if @token
|
||||
$stderr.printf("@token.symbol: %s\n", @token.symbol)
|
||||
$stderr.printf("@token.value: %s\n", @token.value.inspect)
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue