Ignore:
Timestamp:
12/29/08 12:24:05 (6 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_canonical.py

    r322 r328  
    88    if verbose: 
    99        for token in tokens: 
    10             print token 
     10            print(token) 
    1111 
    1212test_canonical_scanner.unittest = ['.canonical'] 
     
    1818    if verbose: 
    1919        for event in events: 
    20             print event 
     20            print(event) 
    2121 
    2222test_canonical_parser.unittest = ['.canonical'] 
     
    2626    try: 
    2727        output = list(yaml.canonical_load_all(data)) 
    28     except yaml.YAMLError, exc: 
     28    except yaml.YAMLError as exc: 
    2929        if verbose: 
    30             print exc 
     30            print(exc) 
    3131    else: 
    3232        raise AssertionError("expected an exception") 
Note: See TracChangeset for help on using the changeset viewer.