From: Menno Smits Date: Mon, 30 Jun 2014 12:01:44 +0000 (+1200) Subject: Fix lexer bug with handling of invalid escaping X-Git-Tag: 0.12^2~7^2~25 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=29961fc069eb40e5ff87360b63fd2a5523932d49;p=imapclient.git Fix lexer bug with handling of invalid escaping --- diff --git a/imapclient/response_lexer.py b/imapclient/response_lexer.py index 9432e8c..25e7154 100644 --- a/imapclient/response_lexer.py +++ b/imapclient/response_lexer.py @@ -67,7 +67,7 @@ class Lexer(object): escaper = nextchar nextchar = six.next(stream_i) if nextchar != escaper and nextchar != end_char: - token += escaper.decode + nextchar = escaper + nextchar # Don't touch invalid escaping elif nextchar == end_char: break token += nextchar