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

select_folder() now returns the full parsed SELECT response (#24)

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • imapclient/response_parser.py

    r123 r126  
    162162 
    163163    CTRL_CHARS = ''.join([chr(ch) for ch in range(32)]) 
    164     ATOM_SPECIALS = r'()%*"' + CTRL_CHARS 
     164    SPECIALS = r'()%"' + CTRL_CHARS 
    165165    ALL_CHARS = [chr(ch) for ch in range(256)] 
    166     ATOM_NON_SPECIALS = [ch for ch in ALL_CHARS if ch not in ATOM_SPECIALS] 
     166    NON_SPECIALS = [ch for ch in ALL_CHARS if ch not in SPECIALS] 
    167167 
    168168    def __init__(self, resp_chunks): 
     
    174174        self.lex.quotes = '"' 
    175175        self.lex.commenters = '' 
    176         self.lex.wordchars = self.ATOM_NON_SPECIALS 
     176        self.lex.wordchars = self.NON_SPECIALS 
    177177 
    178178    def __iter__(self):