mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 13:41:24 +00:00 
			
		
		
		
	Whitespace normalization.
This commit is contained in:
		
							parent
							
								
									cd73a78b68
								
							
						
					
					
						commit
						147f9ae6db
					
				
					 3 changed files with 5 additions and 5 deletions
				
			
		|  | @ -199,7 +199,7 @@ def walk(tree): | ||||||
|                         yield x |                         yield x | ||||||
|             else: |             else: | ||||||
|                 yield tree |                 yield tree | ||||||
|              | 
 | ||||||
|         terminals = list(walk(st2)) |         terminals = list(walk(st2)) | ||||||
|         self.assertEqual([ |         self.assertEqual([ | ||||||
|             (1, 'def', 1, 0), |             (1, 'def', 1, 0), | ||||||
|  |  | ||||||
|  | @ -33,7 +33,7 @@ | ||||||
| COMMENT     '# NEWLINE'   (3, 17) (3, 26) | COMMENT     '# NEWLINE'   (3, 17) (3, 26) | ||||||
| NEWLINE     '\\n'          (3, 26) (3, 27) | NEWLINE     '\\n'          (3, 26) (3, 27) | ||||||
| DEDENT      ''            (4, 0) (4, 0) | DEDENT      ''            (4, 0) (4, 0) | ||||||
|                                                      | 
 | ||||||
| 
 | 
 | ||||||
| There will be a bunch more tests of specific source patterns. | There will be a bunch more tests of specific source patterns. | ||||||
| 
 | 
 | ||||||
|  | @ -43,7 +43,7 @@ | ||||||
| There are some standard formatting practices that are easy to get right. | There are some standard formatting practices that are easy to get right. | ||||||
| 
 | 
 | ||||||
| >>> roundtrip("if x == 1:\\n" | >>> roundtrip("if x == 1:\\n" | ||||||
| ...           "    print x\\n")                | ...           "    print x\\n") | ||||||
| if x == 1: | if x == 1: | ||||||
|     print x |     print x | ||||||
| 
 | 
 | ||||||
|  | @ -53,7 +53,7 @@ | ||||||
| 
 | 
 | ||||||
| >>> roundtrip("if   x  ==  1  :  \\n" | >>> roundtrip("if   x  ==  1  :  \\n" | ||||||
| ...           "  print x\\n") | ...           "  print x\\n") | ||||||
| if   x  ==  1  :   | if   x  ==  1  : | ||||||
|   print x |   print x | ||||||
| 
 | 
 | ||||||
| Comments need to go in the right place. | Comments need to go in the right place. | ||||||
|  |  | ||||||
|  | @ -877,7 +877,7 @@ def add_files(db): | ||||||
|     if not have_ctypes: |     if not have_ctypes: | ||||||
|         print "WARNING: _ctypes.pyd not found, ctypes will not be included" |         print "WARNING: _ctypes.pyd not found, ctypes will not be included" | ||||||
|         extensions.remove("_ctypes.pyd") |         extensions.remove("_ctypes.pyd") | ||||||
|      | 
 | ||||||
|     # Add all .py files in Lib, except lib-tk, test |     # Add all .py files in Lib, except lib-tk, test | ||||||
|     dirs={} |     dirs={} | ||||||
|     pydirs = [(root,"Lib")] |     pydirs = [(root,"Lib")] | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Tim Peters
						Tim Peters