mirror of
				https://github.com/python/cpython.git
				synced 2025-11-03 23:21:29 +00:00 
			
		
		
		
	Add Tools/scripts/patchcheck.py. Invoked from `make check`, the script does
				
					
				
			some verification: - Runs reindent.py on all .py files. - Checks if any changes in Doc exist. - Whether Misc/ACKS was changed. - Whether Misc/NEWS was changed. The hope is that ``make check`` can become a command anybody can run to get reminders about what all the requisite steps needed to create a proper patch/checkin.
This commit is contained in:
		
							parent
							
								
									493894c3e0
								
							
						
					
					
						commit
						a8b09fd4c3
					
				
					 3 changed files with 96 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -130,9 +130,11 @@ def check(file):
 | 
			
		|||
            f.close()
 | 
			
		||||
            if verbose:
 | 
			
		||||
                print "wrote new", file
 | 
			
		||||
        return True
 | 
			
		||||
    else:
 | 
			
		||||
        if verbose:
 | 
			
		||||
            print "unchanged."
 | 
			
		||||
        return False
 | 
			
		||||
 | 
			
		||||
def _rstrip(line, JUNK='\n \t'):
 | 
			
		||||
    """Return line stripped of trailing spaces, tabs, newlines.
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue