Ignore:
Timestamp:
02/19/06 03:10:24 (9 years ago)
Author:
xi
Message:

Fix segfault under Python2.3.

Support for complex numbers.

Add /usr/local to the search path.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/test_dumper.py

    r23 r49  
    1616 
    1717try: 
    18     import sets 
     18    Set = set 
    1919except: 
    20     class _sets: 
    21         def Set(self, items): 
     20    try: 
     21        from sets import Set 
     22    except ImportError: 
     23        def Set(items): 
    2224            set = {} 
    2325            for items in items: 
    2426                set[items] = None 
    2527            return set 
    26     sets = _sets() 
    27  
    2828 
    2929EXAMPLE = { 
     
    7373 
    7474COLLECTIONS = [ 
    75     sets.Set(range(10)), 
     75    Set(range(10)), 
    7676] 
    7777 
Note: See TracChangeset for help on using the changeset viewer.