mirror of
				https://github.com/python/cpython.git
				synced 2025-10-25 18:54:53 +00:00 
			
		
		
		
	final round of __all__ lists (I hope) - skipped urllib2 because Moshe may be
giving it a slight facelift
This commit is contained in:
		
							parent
							
								
									58eadbaf12
								
							
						
					
					
						commit
						40fc16059f
					
				
					 17 changed files with 59 additions and 1 deletions
				
			
		|  | @ -14,11 +14,15 @@ | |||
| import string, re | ||||
| from token import * | ||||
| 
 | ||||
| import token | ||||
| __all__ = [x for x in dir(token) if x[0] != '_'] + ["COMMENT", "tokenize", "NL"] | ||||
| del token | ||||
| 
 | ||||
| COMMENT = N_TOKENS | ||||
| tok_name[COMMENT] = 'COMMENT' | ||||
| NL = N_TOKENS + 1 | ||||
| tok_name[NL] = 'NL' | ||||
| 
 | ||||
| N_TOKENS += 2 | ||||
| 
 | ||||
| # Changes from 1.3: | ||||
| #     Ignore now accepts \f as whitespace.  Operator now includes '**'. | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Skip Montanaro
						Skip Montanaro