Changeset 609

Show
Ignore:
Timestamp:
01/15/07 17:48:43 (2 years ago)
Author:
alo
Message:

--

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • cherokee/trunk/ChangeLog

    r608 r609  
     12007-01-15  Alvaro Lopez Ortega  <alvaro@alobbs.com> 
     2 
     3        * contrib/05to06.py (Lexer._get_word): It wasn't processing quoted 
     4        strings if they contained \" characters. Fixed. 
     5 
    162007-01-14  A.D.F  <adefacc@tin.it> 
    27 
  • cherokee/trunk/contrib/05to06.py

    r603 r609  
    658658                word += self._txt[0] 
    659659                self._txt = self._txt[1:] 
    660                 if word[-1] == '"' or len(self._txt) is 0: break 
     660                if word[-2] != '\\': 
     661                    if word[-1] == '"' or len(self._txt) is 0: break 
    661662            return word 
    662663 
     
    702703        if len(word) is 0: 
    703704            return None, None 
    704              
     705 
    705706        try: 
    706707            int_val = int(word) 
     
    717718        # Quoted string 
    718719        if word[0] == word[-1] == '"': 
    719             return 'str',word 
     720            return 'str',word[1:-1] 
    720721 
    721722        # List