Ignore:
Timestamp:
02/16/06 17:22:59 (9 years ago)
Author:
xi
Message:

Some renaming.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/pyyaml3000/tests/test_structure.py

    r44 r46  
    22import test_appliance 
    33 
     4from yaml.reader import Reader 
     5from yaml.scanner import Scanner 
    46from yaml.parser import * 
    57 
     
    1012        node2 = eval(file(structure_filename, 'rb').read()) 
    1113        try: 
    12             parser = Parser(data_filename, file(data_filename, 'rb').read()) 
     14            parser = Parser(Scanner(Reader(file(data_filename, 'rb')))) 
    1315            node1 = parser.parse() 
    1416            node1 = [self._convert(n) for n in node1] 
     
    5052        documents2 = None 
    5153        try: 
    52             parser = Parser(data_filename, file(data_filename, 'rb').read()) 
     54            parser = Parser(Scanner(Reader(file(data_filename, 'rb')))) 
    5355            documents1 = parser.parse() 
    5456            canonical = test_appliance.CanonicalParser(canonical_filename, file(canonical_filename, 'rb').read()) 
Note: See TracChangeset for help on using the changeset viewer.