Show
Ignore:
Timestamp:
04/29/10 14:01:30 (2 years ago)
Author:
Menno Smits <menno@…>
Branch:
default
Message:

Correctly handle \" in quoted strings.

(As reported in comments of #28)

It turns out these were being handled twice causing them to be
incorrectly removed if a string started with a double quote.

Extended tests to cover more cases around escaped double quotes. Prior
to this the test weren't covering enough cases.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • imapclient/response_parser.py

    r126 r142  
    208208                                literal_len, len(literal_text))) 
    209209        return literal_text 
    210     elif token.startswith('"'): 
    211         return token[1:-1] 
    212210    elif token.isdigit(): 
    213211        return int(token)