mirror of
				https://github.com/python/cpython.git
				synced 2025-11-04 03:44:55 +00:00 
			
		
		
		
	This file isn't meant to be executed, it's data input for test_tokenize.py. The problem with the .py extension is that it uses "non-standard" indentation, and it's good to test that, but reindent.py keeps wanting to fix it. But fixing the indentation causes the expected-output file to change, since exact line and column numbers are part of the tokenize.tokenize() output getting tested.
		
			
				
	
	
		
			12 lines
		
	
	
	
		
			242 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			12 lines
		
	
	
	
		
			242 B
		
	
	
	
		
			Python
		
	
	
	
	
	
from test.test_support import verbose, findfile
 | 
						|
import tokenize, os, sys
 | 
						|
 | 
						|
if verbose:
 | 
						|
    print 'starting...'
 | 
						|
 | 
						|
f = file(findfile('tokenize_tests' + os.extsep + 'txt'))
 | 
						|
tokenize.tokenize(f.readline)
 | 
						|
f.close()
 | 
						|
 | 
						|
if verbose:
 | 
						|
    print 'finished'
 |