Ignore:
Timestamp:
12/29/08 12:24:05 (5 years ago)
Author:
xi
Message:

Added basic support for Python 3 (Thanks idadesub(at)users(dot)sourceforge(dot)net).

Location:
pyyaml/trunk/tests3
Files:
1 edited
1 copied

Legend:

Unmodified
Added
Removed
  • pyyaml/trunk/tests3/test_recursive.py

    r325 r328  
    2424 
    2525def test_recursive(recursive_filename, verbose=False): 
    26     exec open(recursive_filename, 'rb').read() 
     26    exec(open(recursive_filename, 'rb').read()) 
    2727    value1 = value 
    2828    output1 = None 
     
    3636    finally: 
    3737        if verbose: 
    38             #print "VALUE1:", value1 
    39             #print "VALUE2:", value2 
    40             print "OUTPUT1:" 
    41             print output1 
    42             print "OUTPUT2:" 
    43             print output2 
     38            print("VALUE1:", value1) 
     39            print("VALUE2:", value2) 
     40            print("OUTPUT1:") 
     41            print(output1) 
     42            print("OUTPUT2:") 
     43            print(output2) 
    4444 
    4545test_recursive.unittest = ['.recursive'] 
Note: See TracChangeset for help on using the changeset viewer.