Changeset 10


Ignore:
Timestamp:
07/21/05 17:33:32 (8 years ago)
Author:
xi
Message:

Now it passes some tests under Python 2.2 and 2.1.

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/syck/parsers.py

    r9 r10  
    1111except ImportError: 
    1212    pass 
     13 
     14try: 
     15    True 
     16    False 
     17except: 
     18    True = (1==1) 
     19    False = (1!=1) 
    1320 
    1421__all__ = ['error', 'GenericParser', 'Parser'] 
     
    3845            if syck_parser.eof(): 
    3946                break 
    40             yield value 
     47            yield (value) 
    4148 
    4249class Merge: 
  • trunk/tests/test_high_parser.py

    r9 r10  
    111111} 
    112112 
    113 SET = """ 
     113try: 
     114    import sets 
     115    SET = """ 
    114116# Syck does not understand it 
    115117## Explicitly typed set. 
     
    124126    'baseball teams': sets.Set(['Boston Red Sox', 'Detroit Tigers', 'New York Yankees']), 
    125127} 
     128except ImportError: 
     129    pass 
    126130 
    127131class TestDocuments(test_low_parser.TestDocuments): 
  • trunk/tests/test_low_parser.py

    r7 r10  
    55 
    66import StringIO 
     7 
     8try: 
     9    True 
     10    False 
     11except: 
     12    True = (1==1) 
     13    False = (1!=1) 
    714 
    815EXAMPLE = """ 
Note: See TracChangeset for help on using the changeset viewer.