chore: fix formatting of a few Python files (#20743)
This commit is contained in:
		
					parent
					
						
							
								73da4b7215
							
						
					
				
			
			
				commit
				
					
						0eff02dab9
					
				
			
		
					 2 changed files with 4 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -8,7 +8,8 @@ def read_patch(patch_dir, patch_filename):
 | 
			
		|||
  """Read a patch from |patch_dir/filename| and amend the commit message with
 | 
			
		||||
  metadata about the patch file it came from."""
 | 
			
		||||
  ret = []
 | 
			
		||||
  with codecs.open(os.path.join(patch_dir, patch_filename), encoding='utf-8') as f:
 | 
			
		||||
  patch_path = os.path.join(patch_dir, patch_filename)
 | 
			
		||||
  with codecs.open(patch_path, encoding='utf-8') as f:
 | 
			
		||||
    for l in f.readlines():
 | 
			
		||||
      if l.startswith('diff -'):
 | 
			
		||||
        ret.append('Patch-Filename: {}\n'.format(patch_filename))
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue