Changeset 126:4319998fc9b5 for imapclient/response_parser.py
- Timestamp:
- 01/25/10 13:26:30 (2 years ago)
- Branch:
- default
- Files:
-
- 1 modified
-
imapclient/response_parser.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
imapclient/response_parser.py
r123 r126 162 162 163 163 CTRL_CHARS = ''.join([chr(ch) for ch in range(32)]) 164 ATOM_SPECIALS = r'()%*"' + CTRL_CHARS164 SPECIALS = r'()%"' + CTRL_CHARS 165 165 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] 167 167 168 168 def __init__(self, resp_chunks): … … 174 174 self.lex.quotes = '"' 175 175 self.lex.commenters = '' 176 self.lex.wordchars = self. ATOM_NON_SPECIALS176 self.lex.wordchars = self.NON_SPECIALS 177 177 178 178 def __iter__(self):
