Ignore:
Timestamp:
02/17/06 17:39:52 (8 years ago)
Author:
xi
Message:

Working on the scanner.

File:
1 edited

Legend:

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

    r46 r47  
    5555            scanner = Scanner(Reader(file(data_filename, 'rb'))) 
    5656            tokens1 = [] 
    57             while not isinstance(scanner.peek_token(), EndToken): 
     57            while not isinstance(scanner.peek_token(), StreamEndToken): 
    5858                tokens1.append(scanner.get_token()) 
    5959            tokens1 = [self.replaces[t.__class__] for t in tokens1] 
     
    7777                scanner = Scanner(Reader(file(filename, 'rb'))) 
    7878                tokens = [] 
    79                 while not isinstance(scanner.peek_token(), EndToken): 
     79                while not isinstance(scanner.peek_token(), StreamEndToken): 
    8080                    tokens.append(scanner.get_token().__class__.__name__) 
    8181            except: 
Note: See TracChangeset for help on using the changeset viewer.